1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-09 10:30:12 +02:00
copilot/legacy/cloudapi-graphql/src/api/policies.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

22 lines
405 B
JavaScript

const request = require('./request');
module.exports.list = () => {
return request('listPolicies');
};
module.exports.get = ctx => {
return request('getPolicy', ctx);
};
module.exports.create = ctx => {
return request('createPolicy', ctx);
};
module.exports.update = ctx => {
return request('updatePolicy', ctx);
};
module.exports.destroy = ctx => {
return request('deletePolicy', ctx);
};