diff --git a/backend/app/api/docs/docs.go b/backend/app/api/docs/docs.go index 707a3c4..2b6483d 100644 --- a/backend/app/api/docs/docs.go +++ b/backend/app/api/docs/docs.go @@ -1135,27 +1135,6 @@ const docTemplate = `{ } } } - }, - "/v1/users/self/password": { - "put": { - "security": [ - { - "Bearer": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "User" - ], - "summary": "Update the current user's password // TODO:", - "responses": { - "204": { - "description": "No Content" - } - } - } } }, "definitions": { diff --git a/backend/app/api/docs/swagger.json b/backend/app/api/docs/swagger.json index bfa404d..9aab46d 100644 --- a/backend/app/api/docs/swagger.json +++ b/backend/app/api/docs/swagger.json @@ -1127,27 +1127,6 @@ } } } - }, - "/v1/users/self/password": { - "put": { - "security": [ - { - "Bearer": [] - } - ], - "produces": [ - "application/json" - ], - "tags": [ - "User" - ], - "summary": "Update the current user's password // TODO:", - "responses": { - "204": { - "description": "No Content" - } - } - } } }, "definitions": { diff --git a/backend/app/api/docs/swagger.yaml b/backend/app/api/docs/swagger.yaml index 8ed1389..3892c77 100644 --- a/backend/app/api/docs/swagger.yaml +++ b/backend/app/api/docs/swagger.yaml @@ -1138,18 +1138,6 @@ paths: summary: Update the current user tags: - User - /v1/users/self/password: - put: - produces: - - application/json - responses: - "204": - description: No Content - security: - - Bearer: [] - summary: 'Update the current user''s password // TODO:' - tags: - - User securityDefinitions: Bearer: description: '"Type ''Bearer TOKEN'' to correctly set the API Key"' diff --git a/backend/app/api/v1/controller.go b/backend/app/api/v1/controller.go index 349daf5..6cc8069 100644 --- a/backend/app/api/v1/controller.go +++ b/backend/app/api/v1/controller.go @@ -50,12 +50,10 @@ type ( ) func BaseUrlFunc(prefix string) func(s string) string { - v1Base := prefix + "/v1" - prefixFunc := func(s string) string { - return v1Base + s + return func(s string) string { + return prefix + "/v1" + s } - return prefixFunc } func NewControllerV1(svc *services.AllServices, options ...func(*V1Controller)) *V1Controller {