I have to do an exercise where I have to create a route that points to "/series" and returns ALL of them. The exercise hides the already declared series variable. My exercise:
const express = require('express');
const app = express();
app.get("/series/", function(req,res){
})
I don't understand how to access all the series.
I'll give you the answer and a brief explanation.
Basically, in order to solve the exercise, the variable "series" must be called, which is hidden. This will make the parameterized route take all its values by default.
I hope it is clear to understand.
Cheers!