Edit homepage
This commit is contained in:
parent
5233513f45
commit
20859f5eae
3 changed files with 13 additions and 9 deletions
|
@ -34,7 +34,11 @@ namespace Website
|
|||
|
||||
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
|
||||
|
||||
services.AddMvc(options => options.EnableEndpointRouting = false);
|
||||
services.AddMvc(options => options.EnableEndpointRouting = false)
|
||||
#if DEBUG
|
||||
.AddRazorRuntimeCompilation()
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
private void RegisterRepositories(IServiceCollection services) =>
|
||||
|
@ -46,7 +50,7 @@ namespace Website
|
|||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||
{
|
||||
if (env.IsDevelopment() )
|
||||
if (env.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue