From ca4272c56142494428b99586e674e49072d1d198 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Tue, 11 Oct 2016 20:50:30 +0200 Subject: [PATCH] fix url --- public/app/web/page.js | 2 +- public/app/web/permission.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/web/page.js b/public/app/web/page.js index 84924e9..97e4f11 100644 --- a/public/app/web/page.js +++ b/public/app/web/page.js @@ -34,7 +34,7 @@ angular.module('warehost') }; $scope.add = function(){ $scope.obj = {}; - } + }; $scope.save = function(){ if($scope.obj.ID){ $http.put(config.api+'/web/website/'+$stateParams.websiteid+'/page/'+$scope.obj.ID,$scope.obj).then(submitresult); diff --git a/public/app/web/permission.js b/public/app/web/permission.js index 6eaf6d4..b8ffdbd 100644 --- a/public/app/web/permission.js +++ b/public/app/web/permission.js @@ -15,7 +15,7 @@ angular.module('warehost') $scope.obj = {}; } function load(){ - $http.get(config.api+'/user/').then(function(res){ + $http.get(config.api+'/user').then(function(res){ $scope.loginlist = res.data.data; $http.get(config.api+'/web/website/'+$stateParams.websiteid+'/permission').then(function(res){ session.set(res);