|
|
@@ -119,7 +119,9 @@ namespace Company.WebApplication1
|
|
|
#else
|
|
|
services.AddControllersWithViews();
|
|
|
#endif
|
|
|
- services.AddRazorPages();
|
|
|
+#if (OrganizationalAuth || IndividualAuth)
|
|
|
+ services.AddRazorPages();
|
|
|
+#endif
|
|
|
}
|
|
|
|
|
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
|
|
@@ -139,11 +141,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.
|
|
|
app.UseHsts();
|
|
|
}
|
|
|
-
|
|
|
app.UseHttpsRedirection();
|
|
|
#else
|
|
|
}
|
|
|
-
|
|
|
#endif
|
|
|
app.UseStaticFiles();
|
|
|
|
|
|
@@ -159,7 +159,9 @@ namespace Company.WebApplication1
|
|
|
endpoints.MapControllerRoute(
|
|
|
name: "default",
|
|
|
pattern: "{controller=Home}/{action=Index}/{id?}");
|
|
|
+#if (OrganizationalAuth || IndividualAuth)
|
|
|
endpoints.MapRazorPages();
|
|
|
+#endif
|
|
|
});
|
|
|
}
|
|
|
}
|