renamed register route to signup
This commit is contained in:
+3
-3
@@ -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) {
|
||||
Reference in New Issue
Block a user