Commit 5833867b by Torkel Ödegaard

renamed register route to signup

parent ced5e550
Subproject commit 9f4ea7301a41c4dc3449f854d7a61b089d33dad0
Subproject commit 6cc1502c8998332fc4409ea15e68e42c1724144b
......@@ -45,9 +45,9 @@ func Register(m *macaron.Macaron) {
// data source proxy
m.Any("/api/datasources/proxy/:id/*", auth, ProxyDataSourceRequest)
// user register
m.Get("/register", Index)
m.Post("/api/account", CreateAccount)
// User sign up
m.Get("/signup", Index)
m.Post("/api/account/signup", SignUp)
// dashboards
m.Get("/dashboard/*", auth, Index)
......
......@@ -7,7 +7,8 @@ import (
"github.com/torkelo/grafana-pro/pkg/util"
)
func CreateAccount(c *middleware.Context) {
// POST /api/account/signup
func SignUp(c *middleware.Context) {
var cmd m.CreateAccountCommand
if !c.JsonBody(&cmd) {
......
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