ep_who_did_what_scholarvy

0.0.65 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ep_who_did_what_scholarvy

Weekly Downloads

15

Version

0.0.65

License

ISC

Unpacked Size

38.5 kB

Total Files

58

Last publish

Collaborators

  • scholarvy