--- lang: ja-jp breaks: true --- # ASP.NET Core の ルーティング 2021-09-04 > ASP.NET Core のルーティング > https://docs.microsoft.com/ja-jp/aspnet/core/fundamentals/routing > ルーティングの役割は、受信した HTTP 要求を照合し、それらの要求をアプリの実行可能なエンドポイントにディスパッチすることです。 アプリでは、次のものを使用してルーティングを構成できます。 * Controllers * Razor Pages * SignalR * gRPC サービス * エンドポイント対応のミドルウェア (正常性チェックなど)。 * ルーティングに登録されているデリゲートとラムダ ## routing sample > AspNetCore.Docs/aspnetcore/fundamentals/routing/samples/ > https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/fundamentals/routing/samples ## 基本的なルーティングの構成 ```csharp= ・・・ app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapGet("/", async context => { await context.Response.WriteAsync("Hello World!"); }); }); ・・・ ``` ###### tags: `ASP.NET Core` `ルーティング`