mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 09:52:35 +08:00
API token -> API key rename
This commit is contained in:
@ -58,13 +58,13 @@ func Register(r *macaron.Macaron) {
|
||||
r.Delete("/users/:id", RemoveAccountUser)
|
||||
}, reqAccountAdmin)
|
||||
|
||||
// Token
|
||||
r.Group("/tokens", func() {
|
||||
// auth api keys
|
||||
r.Group("/auth/keys", func() {
|
||||
r.Combo("/").
|
||||
Get(GetTokens).
|
||||
Post(bind(m.AddTokenCommand{}), AddToken).
|
||||
Put(bind(m.UpdateTokenCommand{}), UpdateToken)
|
||||
r.Delete("/:id", DeleteToken)
|
||||
Get(GetApiKeys).
|
||||
Post(bind(m.AddApiKeyCommand{}), AddApiKey).
|
||||
Put(bind(m.UpdateApiKeyCommand{}), UpdateApiKey)
|
||||
r.Delete("/:id", DeleteApiKey)
|
||||
}, reqAccountAdmin)
|
||||
|
||||
// Data sources
|
||||
|
Reference in New Issue
Block a user