using Atomx.Admin.Middlewares;

namespace Atomx.Admin.Extensions
{
    public static class SecurityHeadersExtension
    {
        /// <summary>
        /// 安全头
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseSecurityHeaders(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<SecurityHeadersMiddleware>();
        }
    }
}
