mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-13 02:57:14 +02:00
40 lines
927 B
JavaScript
40 lines
927 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('systems.services')
|
|
.factory('SystemsService', SystemsService);
|
|
|
|
SystemsService.$inject = ['$resource'];
|
|
|
|
function SystemsService($resource) {
|
|
return $resource('/api/systems/:systemId', {
|
|
requestId: '@_id'
|
|
}, {
|
|
update: {
|
|
method: 'PUT'
|
|
},
|
|
getSystemEnvConfigFiles: {
|
|
method: 'GET',
|
|
url: '/api/systems/systemEnvConfigFiles'
|
|
},
|
|
getSystemAssetsConfigFiles: {
|
|
method: 'GET',
|
|
url: '/api/systems/systemAssetsConfigFiles'
|
|
},
|
|
getSystemTransConfigFiles: {
|
|
method: 'GET',
|
|
url: '/api/systems/systemTransConfigFiles'
|
|
},
|
|
getSystemConfigContent: {
|
|
method: 'GET',
|
|
url: '/api/systems/systemConfigContent'
|
|
},
|
|
setSystemConfigContent: {
|
|
method: 'PUT',
|
|
url: '/api/systems/systemConfigContent'
|
|
}
|
|
});
|
|
}
|
|
}());
|