mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Small fixes
This commit is contained in:
parent
e750508d76
commit
581efa857b
2
grafana
2
grafana
@ -1 +1 @@
|
||||
Subproject commit efe7279eadeffc4ba9f5a7b340e4ecdf4d208218
|
||||
Subproject commit 590c3b4b50195cacf02fbd0456d55ef69db16b79
|
@ -24,13 +24,13 @@ func Register(r *macaron.Macaron) {
|
||||
r.Get("/login", Index)
|
||||
|
||||
// authed views
|
||||
r.Get("/user/", reqSignedIn, Index)
|
||||
r.Get("/profile/", reqSignedIn, Index)
|
||||
r.Get("/account/", reqSignedIn, Index)
|
||||
r.Get("/account/datasources/", reqSignedIn, Index)
|
||||
r.Get("/account/collaborators/", reqSignedIn, Index)
|
||||
r.Get("/account/users/", reqSignedIn, Index)
|
||||
r.Get("/account/apikeys/", reqSignedIn, Index)
|
||||
r.Get("/account/import/", reqSignedIn, Index)
|
||||
r.Get("/admin", reqSignedIn, Index)
|
||||
r.Get("/admin/users", reqSignedIn, Index)
|
||||
r.Get("/dashboard/*", reqSignedIn, Index)
|
||||
|
||||
// sign up
|
||||
@ -49,8 +49,6 @@ func Register(r *macaron.Macaron) {
|
||||
|
||||
// account
|
||||
r.Group("/account", func() {
|
||||
//r.Get("/", GetAccount)
|
||||
//r.Post("/", bind(m.UpdateAccountCommand{}), UpdateAccount)
|
||||
r.Put("/users", bind(m.AddAccountUserCommand{}), AddAccountUser)
|
||||
r.Get("/users", GetAccountUsers)
|
||||
r.Delete("/users/:id", RemoveAccountUser)
|
||||
|
@ -58,8 +58,8 @@ type GetAccountUsersQuery struct {
|
||||
// Projections and DTOs
|
||||
|
||||
type AccountUserDTO struct {
|
||||
AccountId int64 `json:"account_id"`
|
||||
UserId int64 `json:"user_id"`
|
||||
AccountId int64 `json:"accountId"`
|
||||
UserId int64 `json:"userId"`
|
||||
Email string `json:"email"`
|
||||
Login string `json:"login"`
|
||||
Role string `json:"role"`
|
||||
|
Loading…
Reference in New Issue
Block a user