pref: Improve Swagger authentication (#7298)

This commit is contained in:
2024-12-09 17:57:34 +08:00
committed by GitHub
parent 3d84a5589f
commit 2bc07c91df
49 changed files with 3168 additions and 14 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@ import (
// @BasePath /api/v1
// @schemes http https
// @securityDefinitions.apikey CustomToken
// @securityDefinitions.apikey ApiKeyAuth
// @description Custom Token Format, Format: md5('1panel' + 1Panel-Token + 1Panel-Timestamp).
// @description ```
// @description eg:
@@ -30,6 +30,7 @@ import (
// @type apiKey
// @in Header
// @name 1Panel-Token
// @securityDefinitions.apikey Timestamp
// @type apiKey
// @in header