1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00
portainer/app/rest/api/settings.js
2017-06-01 10:14:55 +02:00

8 lines
275 B
JavaScript

angular.module('portainer.rest')
.factory('Settings', ['$resource', 'SETTINGS_ENDPOINT', function SettingsFactory($resource, SETTINGS_ENDPOINT) {
'use strict';
return $resource(SETTINGS_ENDPOINT, {}, {
get: { method: 'GET' },
update: { method: 'PUT' }
});
}]);