format snippet (#58)

pull/59/head
Rick Anderson 2022-09-19 17:01:37 -10:00 committed by GitHub
parent 2361e29610
commit e4ca4dcc09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#define API_CONTROLLER // FIRST MIDDLEWARE API_CONTROLLER API_CONT_SHORT #define MIDDLEWARE // FIRST MIDDLEWARE API_CONTROLLER API_CONT_SHORT
#if NEVER #if NEVER
#elif FIRST #elif FIRST
// <snippet_1> // <snippet_1>
@ -75,6 +75,7 @@ app.Run();
// </snippet_1> // </snippet_1>
#elif MIDDLEWARE #elif MIDDLEWARE
// <snippet_middleware>
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
@ -153,7 +154,7 @@ app.MapGet("/squareroot", (HttpContext context, double radicand) =>
}); });
app.Run(); app.Run();
// </snippet_middleware>
#elif API_CONTROLLER #elif API_CONTROLLER
// <snippet_api_controller> // <snippet_api_controller>
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);