Browse Source

renamed register route to signup

Torkel Ödegaard 11 years ago
parent
commit
5833867b44
3 changed files with 6 additions and 5 deletions
  1. 1 1
      grafana
  2. 3 3
      pkg/api/api.go
  3. 2 1
      pkg/api/signup.go

+ 1 - 1
grafana

@@ -1 +1 @@
-Subproject commit 9f4ea7301a41c4dc3449f854d7a61b089d33dad0
+Subproject commit 6cc1502c8998332fc4409ea15e68e42c1724144b

+ 3 - 3
pkg/api/api.go

@@ -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)

+ 2 - 1
pkg/api/register.go → pkg/api/signup.go

@@ -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) {