gui-controller/modules/policies/index.js
jmarchel bdd410672d Adding dockerfile
Change-Id: Iaa70ed769c7d693ff5172f4fd3204677e4834a8a
2024-02-26 21:50:27 +02:00

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;
}
},
},
};
},
};