Skip to content

Instantly share code, notes, and snippets.

@fredyfx
Created December 24, 2018 08:03
Show Gist options
  • Save fredyfx/074c9cde00449c47473b892d8e9ccf86 to your computer and use it in GitHub Desktop.
Save fredyfx/074c9cde00449c47473b892d8e9ccf86 to your computer and use it in GitHub Desktop.
Agregamos el routing by default
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