Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get("/url", (req, res, next) => {
- const model = req.query.model;
- const type = req.query.type;
- const urlResponse = dataRetriver(model, type)
- if (urlResponse == undefined) {
- res.status(404).send("Richiesta non trovata.")
- }
- res.json(urlResponse)
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement