mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
Update settings with endpoint
This commit is contained in:
parent
880966f3ba
commit
528565afc8
4 changed files with 9 additions and 2 deletions
|
@ -10,4 +10,5 @@ angular.module('dockerui', ['dockerui.services', 'dockerui.filters'])
|
|||
$routeProvider.when('/settings', {templateUrl: 'partials/settings.html', controller: 'SettingsController'});
|
||||
$routeProvider.otherwise({redirectTo: '/'});
|
||||
}])
|
||||
// This is your docker url that the api will use to make requests
|
||||
.constant('DOCKER_ENDPOINT', 'http://192.168.1.9:4243\:4243');
|
||||
|
|
|
@ -53,8 +53,9 @@ angular.module('dockerui.services', ['ngResource'])
|
|||
get: {method: 'GET'}
|
||||
});
|
||||
})
|
||||
.factory('Settings', function() {
|
||||
.factory('Settings', function(DOCKER_ENDPOINT) {
|
||||
return {
|
||||
displayAll: false
|
||||
displayAll: false,
|
||||
endpoint: DOCKER_ENDPOINT
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue