21 lines
526 B
C#
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;
|
|
}
|
|
}
|