mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
feat: use the "zot" namespace for the authentication url (#1947)
Some other minor fixes for swaggo comments (indentation and a bad description) Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
@@ -14,10 +14,11 @@ const (
|
||||
DefaultMediaType = "application/json"
|
||||
BinaryMediaType = "application/octet-stream"
|
||||
DefaultMetricsExtensionRoute = "/metrics"
|
||||
CallbackBasePath = "/auth/callback"
|
||||
LoginPath = "/auth/login"
|
||||
LogoutPath = "/auth/logout"
|
||||
APIKeyPath = "/auth/apikey" //nolint: gosec
|
||||
AppNamespacePath = "/zot"
|
||||
CallbackBasePath = AppNamespacePath + "/auth/callback"
|
||||
LoginPath = AppNamespacePath + "/auth/login"
|
||||
LogoutPath = AppNamespacePath + "/auth/logout"
|
||||
APIKeyPath = AppNamespacePath + "/auth/apikey"
|
||||
SessionClientHeaderName = "X-ZOT-API-CLIENT"
|
||||
SessionClientHeaderValue = "zot-ui"
|
||||
APIKeysPrefix = "zak_"
|
||||
|
||||
Reference in New Issue
Block a user