1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-10 02:50:11 +02:00
copilot/cloudapi-graphql/src/api/policies.js

22 lines
416 B
JavaScript
Raw Normal View History

2016-10-10 18:37:26 +03:00
const request = require('./request');
module.exports.list = (ctx) => {
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);
};