mirror of
https://github.com/yldio/copilot.git
synced 2025-01-09 10:30:12 +02:00
8295bd6882
this shall be a progressive process
22 lines
405 B
JavaScript
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);
|
|
};
|