ep_who_did_what_scholarvy
v0.0.65
Published
Who made what changes to a pad? A historical report available in the timeslider
Downloads
31
Readme
Daily analysis endpoint function
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.
Deploy npm package tutorial
https://www.youtube.com/watch?v=J4b_T-qH3BY&t=392s