10 references to MapGet
DefaultBuilder.SampleApp (5)
Program.cs (5)
45
.
MapGet
("hello/{name}", (req, res, data) => res.WriteAsync($"Hello, {data.Values["name"]}"))
46
.
MapGet
("goodbye/{name}", (req, res, data) => res.WriteAsync($"Goodbye, {data.Values["name"]}"))
47
.
MapGet
("throw/{message?}", (req, res, data) => throw new Exception((string)data.Values["message"] ?? "Uh oh!"))
48
.
MapGet
("{greeting}/{name}", (req, res, data) => res.WriteAsync($"{data.Values["greeting"]}, {data.Values["name"]}"))
49
.
MapGet
("", (req, res, data) => res.WriteAsync($"Hello, World!"))))
Microsoft.AspNetCore.Routing.FunctionalTests (1)
WebHostBuilderExtensionsTest.cs (1)
24
(rb) => rb.
MapGet
("greeting/{name}", (req, resp, routeData) => resp.WriteAsync($"Hello! {routeData.Values["name"]}")),
RoutingSandbox (1)
UseRouterStartup.cs (1)
28
routes.
MapGet
("api/get/{id}", (request, response, routeData) => response.WriteAsync($"API Get {routeData.Values["id"]}"))
RoutingWebSite (2)
UseRouterStartup.cs (2)
28
routes.
MapGet
("api/get/{id}", (request, response, routeData) => response.WriteAsync($"API Get {routeData.Values["id"]}"))
45
routes.
MapGet
("api/get/{id}", (request, response, routeData) => response.WriteAsync($"{name} - API Get {routeData.Values["id"]}"));
StartRouteBuilderUrlApp (1)
Program.cs (1)
22
router.
MapGet
("route", async (req, res, data) =>