Edit homepage

This commit is contained in:
Robert Marshall 2020-01-04 17:23:59 +00:00
parent 5233513f45
commit 20859f5eae
3 changed files with 13 additions and 9 deletions

View file

@ -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();
}