You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bun example1.ts # And open http://localhost:3000
bun example2.ts # And open http://localhost:3000
What is the expected behavior?
Both examples should work the same — when I enter the root page, I should see the "Global catch-all" text.
What do you see instead?
Currently, this only works with static responses (example 1), even though shows that the second variant with the route handler function is also valid. See point 4. here: https://bun.sh/docs/api/http#route-precedence.
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.5+013fdddc6
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
Create example1.ts file with the below content:
Create example2.ts file with the below content:
Run both examples to see the different behavior.
What is the expected behavior?
Both examples should work the same — when I enter the root page, I should see the "Global catch-all" text.
What do you see instead?
Currently, this only works with static responses (example 1), even though shows that the second variant with the route handler function is also valid. See point 4. here: https://bun.sh/docs/api/http#route-precedence.
Additional information
No response
The text was updated successfully, but these errors were encountered: