using Lada.Framework.Hangfires;
using Microsoft.AspNetCore.Builder;

namespace Lada.Framework.Swaggers
{
    public static class ApplicationBuilderExtension
    {
        public static IApplicationBuilder UseSwaggerAuthorized(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<SwaggerBasicAuthMiddleware>();
        }

        //public static IApplicationBuilder UseHangfireAuthorized(this IApplicationBuilder builder)
        //{
        //    return true;
        //    //return builder.UseMiddleware<HangfireBasicAuthMiddleware>();
        //}
    }
}
