[FA-18] Frontend bootstrapped

This commit is contained in:
gamer147
2025-11-24 13:25:29 -05:00
parent 16ed16ff62
commit e8596b67c4
42 changed files with 9747 additions and 2 deletions

View File

@@ -20,15 +20,26 @@ public class Program
.CoreBuilder.ApplySaneDefaults();
#endregion
builder.Services.AddCors(options =>
{
options.AddPolicy("AllowAllOrigins",
builder =>
{
builder.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader();
});
});
var app = builder.Build();
app.UseHttpsRedirection();
app.UseCors("AllowAllOrigins");
app.MapHealthChecks("/healthz");
app.MapGraphQL();
app.Run();
app.RunWithGraphQLCommands(args);
}
}

View File

@@ -2,3 +2,4 @@
FictionArchive.Service.Shared
FictionArchive.Service.AuthenticationService
FictionArchive.Service.FileService
FictionArchive.Service.NovelService.Tests