This is to be able to update the plugin via the real creators and just add our function:
NOTE: This piece of code goes in the express.js file from the ep_who_did_what plugin.
exports.expressCreateServer = (hookName, args, cb) => {
args.app.get('/getAnalisis/:pad', (req, res, next) => {
const padID = req.params.pad;
exportWhoDidWhat.whoDidWhat(padID, null, (err, result) => {
res.contentType('text/json');
res.json({message:"Paper analisis retrieved succesfully", result});
});
});
cb();
};
We need to get an automated way to upload it to our deployment. Consider contributing to the real plugin.