initial commit

This commit is contained in:
2026-07-21 15:36:49 +07:00
commit 77f66132bc
2640 changed files with 850901 additions and 0 deletions
@@ -0,0 +1,23 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace ASPNET.FrontEnd;
public static class FrontEndConfiguration
{
public static IServiceCollection AddFrontEndServices(this IServiceCollection services)
{
services.AddRazorPages(options =>
{
options.RootDirectory = "/FrontEnd/Pages";
options.Conventions.ConfigureFilter(new PageAuthorizationFilter());
});
return services;
}
public static IEndpointRouteBuilder MapFrontEndRoutes(this IEndpointRouteBuilder endpoints)
{
endpoints.MapRazorPages()
.WithStaticAssets();
return endpoints;
}
}