MapController in RazorPages (#8685)

MapController in RazorPages
This commit is contained in:
Ryan Brandenburg 2019-03-27 10:49:33 -07:00 committed by GitHub
parent 8ae0791735
commit 8955a32ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,9 @@ namespace Company.WebApplication1
app.UseRouting(routes =>
{
routes.MapRazorPages();
#if (IndividualB2CAuth || OrganizationalAuth)
routes.MapControllers();
#endif
});
app.UseCookiePolicy();