Update Startup.cs
Update to template to remove RazorPages extension if not an auth template
This commit is contained in:
parent
cefeb6ba00
commit
343d6e4b9a
|
|
@ -120,7 +120,10 @@ namespace Company.WebApplication1
|
||||||
#else
|
#else
|
||||||
services.AddControllersWithViews();
|
services.AddControllersWithViews();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (OrganizationalAuth || IndividualAuth)
|
||||||
services.AddRazorPages();
|
services.AddRazorPages();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
|
|
@ -160,7 +163,10 @@ 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)
|
||||||
endpoints.MapRazorPages();
|
endpoints.MapRazorPages();
|
||||||
|
#endif
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue