🔒 fix: correct Swagger auth scheme from ApiKeyAuth to BearerAuth
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Failing after 54s
CI/CD Pipeline / CI Pipeline (pull_request) Successful in 7m15s

This commit is contained in:
2026-04-07 01:27:50 +02:00
parent 107bae528a
commit 7154faa7f4
3 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ func (h *apiV1GreetHandler) RegisterRoutes(router chi.Router) {
// @Accept json
// @Produce json
// @Success 200 {object} GreetResponse "Successful response"
// @Security ApiKeyAuth
// @Security BearerAuth
// @Router /v1/greet [get]
func (h *apiV1GreetHandler) handleGreetQuery(w http.ResponseWriter, r *http.Request) {
name := r.URL.Query().Get("name")
@@ -105,7 +105,7 @@ func (h *apiV1GreetHandler) handleGreetQuery(w http.ResponseWriter, r *http.Requ
// @Param name path string true "Name to greet"
// @Success 200 {object} GreetResponse "Successful response"
// @Failure 400 {object} ErrorResponse "Invalid name parameter"
// @Security ApiKeyAuth
// @Security BearerAuth
// @Router /v1/greet/{name} [get]
func (h *apiV1GreetHandler) handleGreetPath(w http.ResponseWriter, r *http.Request) {
name := chi.URLParam(r, "name")