0.0.64 • Published 1 month ago

ep_who_did_what_scholarvy v0.0.64

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

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.

0.0.64

1 month ago