测试
This commit is contained in:
@@ -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?}");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user