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();