Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save talkingdotnet/c350cc66f337876a4958724ce46705ea to your computer and use it in GitHub Desktop.
Save talkingdotnet/c350cc66f337876a4958724ce46705ea to your computer and use it in GitHub Desktop.
public static class RegisterStartupServices
{
public static WebApplicationBuilder RegisterServices(this WebApplicationBuilder builder)
{
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
return builder;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment