(IEndpointRouteBuilder endpoints)
| 122 | } |
| 123 | |
| 124 | private void MapEndpoints(IEndpointRouteBuilder endpoints) |
| 125 | { |
| 126 | endpoints.MapGet("/basicAuth", BasicAuthHandler.Handle); |
| 127 | endpoints.MapGet("/echo", (Delegate)EchoHandler.Handle); |
| 128 | endpoints.MapGet("/cookie", CookieHandler.Handle); |
| 129 | endpoints.MapGet("/encoding", EncodingHandler.Handle); |
| 130 | endpoints.MapGet("/sleep", (Delegate)SleepHandler.Handle); |
| 131 | endpoints.MapGet("/redirect", RedirectHandler.Handle); |
| 132 | endpoints.MapGet("/page/{pageNumber}", PageHandler.Handle); |
| 133 | endpoints.MapGet("/utf8/{*path}", (HttpContext context, string path) => Utf8Handler.Handle(context, path, _webContentRoot)); |
| 134 | endpoints.MapPost("/createPage", (Delegate)((HttpContext context) => CreatePageHandler.Handle(context, _pages))); |
| 135 | endpoints.MapPost("/upload", (Delegate)UploadHandler.Handle); |
| 136 | |
| 137 | endpoints.MapGet("/.well-known/web-identity", (HttpContext context) => FedCmHandler.HandleWebIdentity(context)); |
| 138 | endpoints.MapGet("/fedcm/config.json", (HttpContext context) => FedCmHandler.HandleConfig(context)); |
| 139 | endpoints.MapPost("/fedcm/id_assertion.json", (HttpContext context) => FedCmHandler.HandleIdAssertion(context)); |
| 140 | |
| 141 | endpoints.MapGet("/temp/{fileName}", (string fileName) => CreatePageHandler.ServePage(fileName, _pages)); |
| 142 | } |
| 143 | |
| 144 | private static X509Certificate2 GenerateSelfSignedCertificate() |
| 145 | { |
nothing calls this directly
no test coverage detected