2017-01-31 23:26:29 +00:00
|
|
|
angular.module('portainer.rest')
|
2017-03-12 16:24:15 +00:00
|
|
|
.factory('ContainerCommit', ['$resource', 'Settings', 'EndpointProvider', function ContainerCommitFactory($resource, Settings, EndpointProvider) {
|
2017-01-31 23:26:29 +00:00
|
|
|
'use strict';
|
2017-03-12 16:24:15 +00:00
|
|
|
return $resource(Settings.url + '/:endpointId/commit', {
|
|
|
|
endpointId: EndpointProvider.endpointID
|
|
|
|
},
|
|
|
|
{
|
2017-01-31 23:26:29 +00:00
|
|
|
commit: {method: 'POST', params: {container: '@id', repo: '@repo', tag: '@tag'}}
|
|
|
|
});
|
|
|
|
}]);
|