update
This commit is contained in:
11
docs/docs.go
11
docs/docs.go
@@ -333,6 +333,13 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
"ApiKeyAuth": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
@@ -340,12 +347,14 @@ const docTemplate = `{
|
||||
var SwaggerInfo = &swag.Spec{
|
||||
Version: "",
|
||||
Host: "",
|
||||
BasePath: "/api/v1",
|
||||
BasePath: "/api",
|
||||
Schemes: []string{},
|
||||
Title: "DurpAPI",
|
||||
Description: "API for Durp's needs",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
RightDelim: "}}",
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
}
|
||||
},
|
||||
"basePath": "/api/v1",
|
||||
"basePath": "/api",
|
||||
"paths": {
|
||||
"/health/getHealth": {
|
||||
"get": {
|
||||
@@ -324,5 +324,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"securityDefinitions": {
|
||||
"ApiKeyAuth": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
basePath: /api/v1
|
||||
basePath: /api
|
||||
definitions:
|
||||
model.Message:
|
||||
properties:
|
||||
@@ -214,4 +214,9 @@ paths:
|
||||
summary: Unraid PSU Stats
|
||||
tags:
|
||||
- unraid
|
||||
securityDefinitions:
|
||||
ApiKeyAuth:
|
||||
in: header
|
||||
name: Authorization
|
||||
type: apiKey
|
||||
swagger: "2.0"
|
||||
|
||||
Reference in New Issue
Block a user