mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-03 16:20:27 +00:00
cleanup func
This commit is contained in:
parent
e4b2c19a50
commit
ea750c9ec3
4 changed files with 2 additions and 58 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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"'
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue