Call `UseMvc()` instead of `UseMvcWithDefaultRoute()` (#4204)
parent
a33767db54
commit
7c63421a6d
|
@ -36,8 +36,8 @@ namespace TodoApi
|
|||
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
|
||||
});
|
||||
|
||||
app.UseMvcWithDefaultRoute();
|
||||
app.UseMvc();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue