0

Is it possible to have optional "path" parameters in Echo routes?

For example, I have GET /user/:userId end point. But I need to call this endpoint without userId also and fall back to the default behavior using the same handler.

Currently, if I call /users without userId, it gives me 404.

blackgreen
  • 34,072
  • 23
  • 111
  • 129
Minudika
  • 851
  • 6
  • 23

0 Answers0