mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
try using default controller routing
per: https://stormpath.com/blog/5-api-tips-dotnet-core
This commit is contained in:
parent
b5aefb1644
commit
3f64cdb65b
2 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
namespace FilterLists.Api.Controllers
|
||||
{
|
||||
[Route("v1/[controller]")]
|
||||
[Produces("application/json")]
|
||||
public class ListsController : Controller
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public void Configure(IApplicationBuilder app)
|
|||
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseMvc();
|
||||
app.UseMvc(routes => { routes.MapRoute("default", "v1/{controller=Default}/{action=Get}/{id?}"); });
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue