This commit is contained in:
Jackson.Bruce
2021-02-15 12:47:16 +08:00
parent 18517b5e3b
commit 6e0cd7e085
2 changed files with 3 additions and 3 deletions

View File

@@ -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?}");
});
}
}

View File

@@ -12,7 +12,7 @@
<script>
var times={};
var uploader = new Uploader({
url: "/FileServices/Uploader",
url: "/api/Uploader",//FileServices
placeholder: "a",
params: { dir: "test/kkk" },
dragable: true