-
Notifications
You must be signed in to change notification settings - Fork 375
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: undefined HTTP method handlers not responding with 405 #1041
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
db32749
return 405 for not implemented verbs on api routes
edivados e470357
add test
edivados 404e6e1
return 405 if route only exports component
edivados 68b7c5e
add test for page route with only default export
edivados 5f4c186
test description
edivados b612a91
small fix
edivados 351d500
test all verbs
edivados 5e32a06
make it work in dev
edivados 330ccf3
single line test file
edivados cee998d
better test description
edivados da5a4a8
cover GET handler in test
edivados 53d3b67
it's method not allowed not method not found
edivados 093fa03
test all handlers
edivados 23a2021
more method not found corrections
edivados 7cb0b1e
flip apiRoutes and inlineServerFunctions middleware order
edivados 0470bdf
move methodNotAllowed function to api/index.ts
edivados ac20e90
fix islands
edivados 7edef85
Merge branch 'main' of https://github.com/solidjs/solid-start into me…
edivados 9326c3b
checking for islandRsouter instead of islands
edivados 5a468f6
Merge branch 'main' into method-not-found
ryansolid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without changing the order, requests for server functions will be mistakenly handled by wildcard routes (like 404) that now have a handler for all methods.
This can be reproduced in the latest version
0.3.5
by adding a POST method handler to the [...404] page. It will break server functions.