Initial version

This commit is contained in:
2026-06-20 10:24:36 +02:00
parent f85b83d90f
commit 7e1173bf2c
40 changed files with 5438 additions and 63 deletions
+27
View File
@@ -0,0 +1,27 @@
using EonaCat.DoxaApi;
using EonaCat.DoxaApi.Middleware;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
builder.Services.AddDoxaApi(options =>
{
options.Title = "Sample API";
options.Description = "A demo service showing off the DoxaApi UI - users and orders.";
options.Version = "v1";
options.AccentColor = "#6366f1";
});
var app = builder.Build();
app.UseRouting();
app.UseDoxaApi(options =>
{
options.RoutePrefix = "doxa";
});
app.MapControllers();
app.MapGet("/", () => Results.Redirect("/doxa"));
app.Run();