feat: add health check endpoint, file upload result handling, and Playwright E2E tests

- Add /health endpoint with anonymous access for monitoring
- Add FileUploadResult<T> model and PostMultipartForFileResultAsync for proper upload response handling
- Add ApiResult.Success() factory method for interface types
- Refactor Login.razor for cleaner code
- Add comprehensive Playwright E2E test suite with fixtures and helpers
This commit is contained in:
Joseph Doherty
2026-01-30 07:12:20 -05:00
parent ae69a261d6
commit ee044d03e0
59 changed files with 11740 additions and 49 deletions
@@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.OpenApi.Models;
namespace Microsoft.Extensions.DependencyInjection;
@@ -113,6 +114,12 @@ public static class ApiDependencyInjection
app.MapControllers();
app.MapHub<StatusHub>("/hubs/status");
// Health check endpoint - no authentication required
app.MapHealthChecks("/health", new HealthCheckOptions
{
AllowCachingResponses = false
}).AllowAnonymous();
return app;
}
}