I have a node.js / express server where I get information by adding requests on my browser like this:
http://localhost:3000/list/1
This will return me a list of data.
My question is...Is there anyway where I can open a terminal window and make the same request from there?
Can this be done, if so how?
Here's the route code:
app.route('/list/:id')
.get((req:Request, res: Response) => {
let id = req.params.id;
res.status(200).send(list[id]);
});