Created
December 24, 2018 08:03
-
-
Save fredyfx/074c9cde00449c47473b892d8e9ccf86 to your computer and use it in GitHub Desktop.
Agregamos el routing by default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
{ | |
if (env.IsDevelopment()) | |
{ | |
app.UseDeveloperExceptionPage(); | |
} | |
app.UseStaticFiles(); | |
app.UseMvc(config=>{ | |
config.MapRoute("Default","/{controller}/{action}/{id?}", new{controller="Home", Action ="Index"}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment