Advertisement
rickyc81

Untitled

Feb 10th, 2021
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. router.get("/url", (req, res, next) => {
  2.     const model = req.query.model;
  3.     const type = req.query.type;
  4.     const urlResponse = dataRetriver(model, type)
  5.  
  6.     if (urlResponse == undefined) {
  7.         res.status(404).send("Richiesta non trovata.")
  8.     }
  9.     res.json(urlResponse)
  10. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement