From 63790b7d54609374da6fde8798f68161377541ee Mon Sep 17 00:00:00 2001 From: slaventius Date: Tue, 28 Feb 2023 15:49:58 +0300 Subject: [PATCH] * --- internal/auth.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/auth.go b/internal/auth.go index 65c005d..30a188d 100644 --- a/internal/auth.go +++ b/internal/auth.go @@ -49,8 +49,11 @@ func NewServer(ctx context.Context, config *config.Config) *AuthServer { ctx: ctx, } - // эндпоинты требующие авторизации - arouter.Get("/api/v1/healthz", server.requireAuth(healthz(server))) + // эндпоинты требующие авторизации оборачиваются в server.requireAuth + // arouter.Get("/api/v1/healthz", server.requireAuth(healthz(server))) + + // + arouter.Get("/api/v1/healthz", healthz(server)) // arouter.Post("/api/v1/login", login(server))