mirror of
https://github.com/yldio/copilot.git
synced 2025-01-10 02:50:11 +02:00
22 lines
416 B
JavaScript
22 lines
416 B
JavaScript
|
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);
|
||
|
};
|