format snippet (#58)
parent
2361e29610
commit
e4ca4dcc09
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue