diff --git a/TestWeb/Startup.cs b/TestWeb/Startup.cs index 1fd7b8b..e258350 100644 --- a/TestWeb/Startup.cs +++ b/TestWeb/Startup.cs @@ -105,12 +105,12 @@ namespace TestWeb // throw ex; // } //}); - app.UseFileServices(); + app.UseFileServices("/api"); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", - pattern: "{controller=Home}/{action=Index}/{id?}"); + pattern: "api/{controller=Home}/{action=Index}/{id?}"); }); } } diff --git a/TestWeb/wwwroot/test.html b/TestWeb/wwwroot/test.html index 2b5499f..ec55916 100644 --- a/TestWeb/wwwroot/test.html +++ b/TestWeb/wwwroot/test.html @@ -12,7 +12,7 @@