Commit 6cc1502c by Torkel Ödegaard

Renamed register routes/ctrl to signup

parent 9f4ea730
......@@ -7,6 +7,6 @@ define([
'./inspectCtrl',
'./jsonEditorCtrl',
'./loginCtrl',
'./registerCtrl',
'./signUpCtrl',
'./errorCtrl',
], function () {});
......@@ -6,7 +6,7 @@ function (angular) {
var module = angular.module('grafana.routes');
module.controller('RegisterCtrl', function($scope, backendSrv, $location) {
module.controller('SignUpCtrl', function($scope, backendSrv, $location) {
$scope.loginModel = {};
$scope.grafana.sidemenu = false;
......@@ -19,7 +19,7 @@ function (angular) {
return;
}
backendSrv.post('/api/account', $scope.loginModel).then(function() {
backendSrv.post('/api/account/signup', $scope.loginModel).then(function() {
$location.path('/login');
});
};
......
......@@ -38,7 +38,7 @@
</div>
<div class="register-box text-center">
<a href="register" class="btn btn-info">Sign up now!</a>
<a href="signup" class="btn btn-info">Sign up now!</a>
</div>
</div>
......
......@@ -46,9 +46,9 @@ define([
templateUrl: 'app/partials/login.html',
controller : 'LoginCtrl',
})
.when('/register', {
.when('/signup', {
templateUrl: 'app/partials/register.html',
controller : 'RegisterCtrl',
controller : 'SignUpCtrl',
})
.when('/dashboard/solo/:id/', {
templateUrl: 'app/partials/solo-panel.html',
......
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