cleanup func

This commit is contained in:
Hayden 2022-10-16 17:57:45 -08:00
parent e4b2c19a50
commit ea750c9ec3
4 changed files with 2 additions and 58 deletions

View file

@ -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": { "definitions": {

View file

@ -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": { "definitions": {

View file

@ -1138,18 +1138,6 @@ paths:
summary: Update the current user summary: Update the current user
tags: tags:
- User - 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: securityDefinitions:
Bearer: Bearer:
description: '"Type ''Bearer TOKEN'' to correctly set the API Key"' description: '"Type ''Bearer TOKEN'' to correctly set the API Key"'

View file

@ -50,12 +50,10 @@ type (
) )
func BaseUrlFunc(prefix string) func(s string) string { func BaseUrlFunc(prefix string) func(s string) string {
v1Base := prefix + "/v1" return func(s string) string {
prefixFunc := func(s string) string { return prefix + "/v1" + s
return v1Base + s
} }
return prefixFunc
} }
func NewControllerV1(svc *services.AllServices, options ...func(*V1Controller)) *V1Controller { func NewControllerV1(svc *services.AllServices, options ...func(*V1Controller)) *V1Controller {