try using default controller routing

per: https://stormpath.com/blog/5-api-tips-dotnet-core
This commit is contained in:
Collin M. Barrett 2017-10-30 06:18:15 -05:00
parent b5aefb1644
commit 3f64cdb65b
2 changed files with 1 additions and 2 deletions

View file

@ -3,7 +3,6 @@
namespace FilterLists.Api.Controllers
{
[Route("v1/[controller]")]
[Produces("application/json")]
public class ListsController : Controller
{

View file

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