bdd410672d
Change-Id: Iaa70ed769c7d693ff5172f4fd3204677e4834a8a
19 lines
402 B
JavaScript
19 lines
402 B
JavaScript
const exn = require('../../lib/exn')
|
|
|
|
|
|
module.exports = {
|
|
apiRoutes(self) {
|
|
return {
|
|
post: {
|
|
async publish(req) {
|
|
try {
|
|
await exn.publish_policies(req.body.policies)
|
|
} catch (error) {
|
|
throw error;
|
|
}
|
|
},
|
|
},
|
|
};
|
|
},
|
|
};
|