api fixes

This commit is contained in:
2021-12-13 12:21:15 +01:00
parent d949ee91e5
commit 02e79a6dff
11 changed files with 59 additions and 70 deletions
+2 -3
View File
@@ -39,12 +39,11 @@ if (!app.Environment.IsDevelopment())
app.UseZero().WithEndpoints(x =>
{
//x.MapControllerRoute("default", "api/{controller}/{action=Index}/{id?}");
x.MapControllers();
x.MapRazorPages();
x.MapZeroRoutes();
//x.MapZeroBackoffice();
x.MapFallbackToController("Index", "Error");
});
//app.UseZeroBackoffice();
app.Run();
app.Run();