This commit is contained in:
2023-08-05 18:02:45 -05:00
parent 6f6872eaba
commit b98b87e4ba
6 changed files with 32 additions and 5 deletions

View File

@@ -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() {