mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
10 lines
461 B
JavaScript
10 lines
461 B
JavaScript
angular.module('portainer.app')
|
|
.factory('Templates', ['$resource', 'API_ENDPOINT_TEMPLATES', function TemplatesFactory($resource, API_ENDPOINT_TEMPLATES) {
|
|
return $resource(API_ENDPOINT_TEMPLATES + '/:id', {}, {
|
|
create: { method: 'POST' },
|
|
query: { method: 'GET', isArray: true },
|
|
get: { method: 'GET', params: { id: '@id'} },
|
|
update: { method: 'PUT', params: { id: '@id'} },
|
|
remove: { method: 'DELETE', params: { id: '@id'} }
|
|
});
|
|
}]);
|