-
Notifications
You must be signed in to change notification settings - Fork 5
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
POST to route returns 404 #10
Comments
Forked, writing a test with a route table and going to submit a PR. |
Route tables are part of https://github.com/mixdown/router, not pipeline-router. |
next() does not end the pipeline. It tells the pipeline to try the next step. |
@tommymessbauer You're right, next() does not necessarily end the pipeline. You're also right about the route table, however are you saying the fix for this is in mixdown-router? The code path still breaks. |
I am just saying that you cannot initialize a pipeline router with a route table. Mixdown-router uses a route table. |
yeah and you said it 6 times....I get it. |
I promise that was a github bug. I pressed "Comment" and it did nothing. So it took 6 tries before I realized that the page was not updating correctly. |
GIVEN route table:
WHEN looping over routes looking for a match
AND when matched
AND when method matches
THEN move on
Currently, this code (https://github.com/tommymessbauer/pipeline-router/blob/master/index.js#L123):
will not find a match OR the method will not match and fire next() and end with match undefined which returns a 404 as the POST response:
The text was updated successfully, but these errors were encountered: