fleshout backend

This commit is contained in:
KS Jannette
2026-08-03 04:23:32 -04:00
parent a00282b1e6
commit 092ef17439
19 changed files with 500 additions and 52 deletions

View File

@@ -0,0 +1,14 @@
namespace Backend.Gateway;
public static class GatewayApplicationBuilderExtensions
{
// CORS must run before the rate limiter so that rejected requests still carry
// the headers the browser needs to surface a 429 to the client.
public static IApplicationBuilder UseApiGateway(this IApplicationBuilder app)
{
app.UseCors(GatewayServiceCollectionExtensions.CorsPolicyName);
app.UseRateLimiter();
return app;
}
}