Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dev): json-server does not return correct speech data #551

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

mattwang44
Copy link
Member

@mattwang44 mattwang44 commented Jul 4, 2024

Types of changes

  • Bugfix

Description

issue: #550 (comment)

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.

@mattwang44 mattwang44 requested a review from SivanYeh July 4, 2024 09:19
@mattwang44 mattwang44 changed the title feat(speech): toggle talks and tutorials pages fix(dev): json-server does not return correct speech data Jul 4, 2024
@SivanYeh
Copy link
Collaborator

It worked! LGTM!

@SivanYeh SivanYeh merged commit 328e6e6 into feat/2024-tutorial-talk Jul 11, 2024
@SivanYeh SivanYeh deleted the fix-json-server-routes branch July 11, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants