mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 23:06:36 +08:00
docs(openflare): complete Swagger for protocol and dashboard APIs
Add Swagger annotations for all Agent, Relay, and Tunnel protocol endpoints under /api/v1. Register AgentTokenAuth and TunnelTokenAuth security definitions. Align dashboard API docs to return 404 for insufficient admin permission.
This commit is contained in:
@@ -17,6 +17,12 @@ import "github.com/Rain-kl/Wavelet/internal/cmd"
|
||||
// @securityDefinitions.apikey SessionCookie
|
||||
// @in cookie
|
||||
// @name session
|
||||
// @securityDefinitions.apikey AgentTokenAuth
|
||||
// @in header
|
||||
// @name X-Agent-Token
|
||||
// @securityDefinitions.apikey TunnelTokenAuth
|
||||
// @in header
|
||||
// @name X-Tunnel-Token
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user