Route collector #219
jamesrweb
started this conversation in
Show and tell
Replies: 2 comments 7 replies
-
Is there a reason, you do not support the MiddlewareInterface as Routehandler? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@jamesrweb You definitely put some work into this, great job 👍 Are you suggesting to add this as part of Framework X or is this something that can/should exist outside of the project? In my opinion both ways work and have their pros and cons, for example adding this to the project itself also means to add additional documentation, ensure 100% code coverage, etc. I'm interested in your thoughts on this. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As I have discussed in #216 here with @SimonFrings, a native route collector would be really helpful. For my own purposes I built one which you may or may not base the "native" version on.
Implementation
Tests
Usage
I would improve this by adding
trace
andconnect
verb handlers but currently FrameworkX doesn't support these.. I believe it should be native to the project to support all restful verbs, etc but I am curious why they aren't there either way?Otherwise this is a foundation I have been using in production with Framework-X now for a while and works quite well so far for my use cases.
Beta Was this translation helpful? Give feedback.
All reactions