nugetd
This commit is contained in:
parent
be30ef3c25
commit
1266dd54db
5 changed files with 137 additions and 13 deletions
|
|
@ -69,20 +69,22 @@ namespace nuget_host
|
|||
}
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
// app.UseExceptionHandler("/Home/Error");
|
||||
app.UseDeveloperExceptionPage();
|
||||
dbContext.Database.Migrate();
|
||||
}
|
||||
|
||||
app.UseStatusCodePages();
|
||||
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseAuthentication();
|
||||
|
||||
|
||||
app.UseMvc(routes =>
|
||||
{
|
||||
routes.MapRoute(
|
||||
name: "default",
|
||||
template: "{controller=Home}/{action=Index}/{id?}");
|
||||
template: "{controller=PackageVersion}/{action=Index}/{PackageId?}");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue