hooked up jwt token in angular

This commit is contained in:
Brad Rydzewski
2014-09-30 00:43:50 -07:00
parent 58f287a541
commit 5f950d21c4
22 changed files with 138 additions and 91 deletions

View File

@@ -27,7 +27,7 @@ angular.module('app').controller("SetupController", function($scope, $http, $rou
// todo(bradrydzewski) move this to the remote.js service.
$scope.save = function() {
// request to create a new repository
$http({method: 'POST', url: '/v1/remotes', data: $scope.remote }).
$http({method: 'POST', url: '/api/remotes', data: $scope.remote }).
success(function(data, status, headers, config) {
delete $scope.failure;
$location.path("/login");