0
I have the following doubt.
I have two GET routes, and the second route, whenever I try to access, the browser understands as if I were informing the parameter :id and creates an error.
routes.get('/tasks/:id', TaskController.show);
routes.get('/tasks/pending', TaskController.pendingTasks);
Is there any way around this without me changing the Source /tasks ?