Commit 581efa85 by Torkel Ödegaard

Small fixes

parent e750508d
Subproject commit efe7279eadeffc4ba9f5a7b340e4ecdf4d208218 Subproject commit 590c3b4b50195cacf02fbd0456d55ef69db16b79
...@@ -24,13 +24,13 @@ func Register(r *macaron.Macaron) { ...@@ -24,13 +24,13 @@ func Register(r *macaron.Macaron) {
r.Get("/login", Index) r.Get("/login", Index)
// authed views // authed views
r.Get("/user/", reqSignedIn, Index) r.Get("/profile/", reqSignedIn, Index)
r.Get("/account/", reqSignedIn, Index) r.Get("/account/", reqSignedIn, Index)
r.Get("/account/datasources/", 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/apikeys/", reqSignedIn, Index)
r.Get("/account/import/", reqSignedIn, Index) r.Get("/account/import/", reqSignedIn, Index)
r.Get("/admin", reqSignedIn, Index) r.Get("/admin/users", reqSignedIn, Index)
r.Get("/dashboard/*", reqSignedIn, Index) r.Get("/dashboard/*", reqSignedIn, Index)
// sign up // sign up
...@@ -49,8 +49,6 @@ func Register(r *macaron.Macaron) { ...@@ -49,8 +49,6 @@ func Register(r *macaron.Macaron) {
// account // account
r.Group("/account", func() { r.Group("/account", func() {
//r.Get("/", GetAccount)
//r.Post("/", bind(m.UpdateAccountCommand{}), UpdateAccount)
r.Put("/users", bind(m.AddAccountUserCommand{}), AddAccountUser) r.Put("/users", bind(m.AddAccountUserCommand{}), AddAccountUser)
r.Get("/users", GetAccountUsers) r.Get("/users", GetAccountUsers)
r.Delete("/users/:id", RemoveAccountUser) r.Delete("/users/:id", RemoveAccountUser)
......
...@@ -58,8 +58,8 @@ type GetAccountUsersQuery struct { ...@@ -58,8 +58,8 @@ type GetAccountUsersQuery struct {
// Projections and DTOs // Projections and DTOs
type AccountUserDTO struct { type AccountUserDTO struct {
AccountId int64 `json:"account_id"` AccountId int64 `json:"accountId"`
UserId int64 `json:"user_id"` UserId int64 `json:"userId"`
Email string `json:"email"` Email string `json:"email"`
Login string `json:"login"` Login string `json:"login"`
Role string `json:"role"` Role string `json:"role"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment