i have written a route in which one param is constant and others are not.
app.all('/todo/:name/:age/**',users.showTodo);
What i planned was i can call this API using any number of params and should be able to fetch all of them. For example :
I can call this api like
localhost:8000/todo/anyName/anyAge
and able to fetch name and age but what i want instead that i will be able to call the API like
localhost:8000/todo/anyName/anyAge/param1/param2/param3/param4/param5 etc..
So can someone help me defining such kind of customizable route ? Thanks.
via sharad chauhan
No comments:
Post a Comment