slaventius 2 years ago
parent 8e5302b88a
commit 63790b7d54
  1. 7
      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))

Loading…
Cancel
Save