fix merge
This commit is contained in:
commit
49a5ca979b
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue