This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FastEndpoints.Swagger; | |
using Scalar.AspNetCore; //dotnet add package Scalar.AspNetCore | |
var bld = WebApplication.CreateBuilder(args); | |
bld.Services | |
.AddFastEndpoints() | |
.SwaggerDocument(); //define a swagger doc - v1 by default | |
var app = bld.Build(); | |
app.UseFastEndpoints(); //must come before the UseOpenApi() call |