initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user