13 lines
357 B
C#
13 lines
357 B
C#
using Foxchat.Identity.Authorization;
|
|
|
|
namespace Foxchat.Identity.Extensions;
|
|
|
|
public static class WebApplicationExtensions
|
|
{
|
|
public static IApplicationBuilder UseCustomMiddleware(this IApplicationBuilder app)
|
|
{
|
|
return app
|
|
.UseMiddleware<AuthenticationMiddleware>()
|
|
.UseMiddleware<AuthorizationMiddleware>();
|
|
}
|
|
}
|