fix merge

This commit is contained in:
Isaac Levin 2019-06-29 19:24:30 -04:00
commit 49a5ca979b
1 changed files with 3 additions and 7 deletions

View File

@ -120,9 +120,8 @@ namespace Company.WebApplication1
#else #else
services.AddControllersWithViews(); services.AddControllersWithViews();
#endif #endif
#if (OrganizationalAuth || IndividualAuth)
#if (Auth) services.AddRazorPages();
services.AddRazorPages();
#endif #endif
} }
@ -143,11 +142,9 @@ namespace Company.WebApplication1
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts(); app.UseHsts();
} }
app.UseHttpsRedirection(); app.UseHttpsRedirection();
#else #else
} }
#endif #endif
app.UseStaticFiles(); app.UseStaticFiles();
@ -163,8 +160,7 @@ namespace Company.WebApplication1
endpoints.MapControllerRoute( endpoints.MapControllerRoute(
name: "default", name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}"); pattern: "{controller=Home}/{action=Index}/{id?}");
#if (OrganizationalAuth || IndividualAuth)
#if (Auth)
endpoints.MapRazorPages(); endpoints.MapRazorPages();
#endif #endif
}); });