the behavior of how json-server reads the route settings seems to be changed.
When requesting /api/events/speeches/category/:category, the json-server incorrectly matches the route /api/events/speeches/:event_type/:id (take category as even type, and :category as the id). Changing the sequence in routes.json solves this issue.
Types of changes
Description
issue: https://github.com/pycontw/pycontw-frontend/pull/550#issuecomment-2202667612
the behavior of how json-server reads the route settings seems to be changed.
When requesting
/api/events/speeches/category/:category
, the json-server incorrectly matches the route/api/events/speeches/:event_type/:id
(takecategory
as even type, and:category
as the id). Changing the sequence in routes.json solves this issue.