You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #182 on December 15, 2020 15:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem occurs when I add custom map routes
.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}");
and remove route attributes from home controller index axtion so that it simply looks like
public class HomeController : ControllerBase { public IActionResult Index() { } }
After that all routes are mapped to the index method of home controller. Can't get /swagger /cars etc
Which project template is the issue about?
ASP.NET Core Boilerplate Logo ASP.NET Core API Boilerplate
Which version of the project template is the issue about?
1.0
Which version of Visual Studio or the dotnet SDK were you using?
donetcore 1.1.0
Beta Was this translation helpful? Give feedback.
All reactions