Add api/shops_controller and refactor

This commit is contained in:
Matt-Yorkley
2020-04-04 16:28:04 +02:00
parent af48cac140
commit bc859cf9f7
11 changed files with 87 additions and 69 deletions

View File

@@ -24,7 +24,7 @@ Darkswarm.controller "HubNodeCtrl", ($scope, HashNavigation, CurrentHub, $http,
$scope.shopfront_loading = true
$scope.toggle_tab(event)
$http.get("/api/enterprises/" + $scope.hub.id + "/shopfront")
$http.get("/api/shops/" + $scope.hub.id)
.success (data) ->
$scope.shopfront_loading = false
$scope.hub = data