From 89c9bcea864621a2d1e5f44a166173103cb36f9b Mon Sep 17 00:00:00 2001 From: Charlie Chu Date: Sat, 3 Dec 2016 17:21:36 +0800 Subject: [PATCH] Fix typo --- aspnetcore/fundamentals/routing.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/aspnetcore/fundamentals/routing.md b/aspnetcore/fundamentals/routing.md index 71f3aefadd..7d9df6315c 100644 --- a/aspnetcore/fundamentals/routing.md +++ b/aspnetcore/fundamentals/routing.md @@ -24,7 +24,7 @@ This document covers the low level ASP.NET Core routing. For ASP.NET Core MVC ro ## Routing basics -Routing uses *routes* (implementations of `IRouter``) to: +Routing uses *routes* (implementations of `IRouter`) to: * map incoming requests to *route handlers* @@ -204,7 +204,7 @@ Routes must configured in the `Configure` method in the `Startup` class. The sam -``` +```csharp public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) { var trackPackageRouteHandler = new RouteHandler(context => @@ -224,13 +224,14 @@ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) { var name = context.GetRouteValue("name"); // This is the route handler when HTTP GET "hello/" matches - // To match HTTP GET "hello//, + // To match HTTP GET "hello//, // use routeBuilder.MapGet("hello/{*name}" return context.Response.WriteAsync($"Hi, {name}!"); - }); + }); var routes = routeBuilder.Build(); app.UseRouter(routes); +} ``` The table below shows the responses with the given URIs.