1
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
namespace Yes.Blog.Endpoints.Admins.Statistics
|
||||
{
|
||||
public class GetStatsEndpoint : AdminEndpointScheme, IEndpoint
|
||||
public class GetStatsEndpoint : StatEndpointScheme, IEndpoint
|
||||
{
|
||||
public void Map(IEndpointRouteBuilder app) => app.MapGet("/Stats", Handle);
|
||||
public void Map(IEndpointRouteBuilder app) => app.MapGet("/stats", Handle);
|
||||
|
||||
|
||||
private async Task<IResult> Handle(IMediator mediator, IMapper mapper, CancellationToken cancellationToken)
|
||||
|
||||
10
Yes.Blog/Endpoints/Admins/Statistics/StatEndpointScheme.cs
Normal file
10
Yes.Blog/Endpoints/Admins/Statistics/StatEndpointScheme.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Yes.Blog.Endpoints.Admins.Statistics
|
||||
{
|
||||
public class StatEndpointScheme
|
||||
{
|
||||
public int Priority { get; set; } = 3;
|
||||
public string Prefix { get; set; } = "admin/api";
|
||||
|
||||
public string[] Tags { get; set; } = new[] { "Statistics" };
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user