From 45deadc037cebb3a297872f933b94aefe2f562e2 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Sat, 8 Nov 2025 04:42:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D1=80=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Program.cs | 10 +++++++--- SfeduSchedule/SfeduSchedule.csproj | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index bcdb508..dc91579 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -10,6 +10,7 @@ using Microsoft.AspNetCore.HttpOverrides; using Microsoft.AspNetCore.Mvc.ApplicationParts; using SfeduSchedule.Auth; using Microsoft.AspNetCore.Authentication.OpenIdConnect; +using Prometheus; var builder = WebApplication.CreateBuilder(args); @@ -250,10 +251,15 @@ if (string.IsNullOrEmpty(preinstalledJwtToken)) app.UseSwagger(); app.UseSwaggerUI(); +app.UseStaticFiles(); + +app.UseRouting(); + app.UseAuthentication(); app.UseAuthorization(); -app.UseStaticFiles(); +app.UseHttpMetrics(); +app.UseRateLimiter(); app.MapGet("/", async context => { @@ -269,6 +275,4 @@ foreach (var p in loadedPlugins) p.Instance.MapEndpoints(app); } -app.UseRateLimiter(); - app.Run(); \ No newline at end of file diff --git a/SfeduSchedule/SfeduSchedule.csproj b/SfeduSchedule/SfeduSchedule.csproj index fbbee2b..9639159 100644 --- a/SfeduSchedule/SfeduSchedule.csproj +++ b/SfeduSchedule/SfeduSchedule.csproj @@ -13,7 +13,7 @@ - +