Files
2026-07-21 15:03:40 +07:00

21 lines
526 B
C#

namespace ASPNET.FrontEnd;
public static class FrontEndConfiguration
{
public static IServiceCollection AddFrontEndServices(this IServiceCollection services)
{
services.AddRazorPages(options =>
{
options.RootDirectory = "/FrontEnd/Pages";
});
return services;
}
public static IEndpointRouteBuilder MapFrontEndRoutes(this IEndpointRouteBuilder endpoints)
{
endpoints.MapRazorPages()
.WithStaticAssets();
return endpoints;
}
}