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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃殌 [Feature]: Export matching function #2138
Comments
we can make but is not so simple before you can match this route you have to create a route first for this there is an analysis function which is not really optimized because it was only used for the declaration of the routes so far we would have to optimize this and then provide both functionalities and document how this can be used |
I'm only interested in simpler functionality than what you envision. I'm just trying to replace using NOTE: The reason I'm asking for "obscure" functionality in my many feature requests is because I am making a package that combines fiber and sveltekit super-super tightly (tighter than it's ever been done before) and I need to interact with sveltekit's own rounting system. I will open-source my package and demo it to everyone soon. |
sorry had overlooked the sentence so you just don't want them to show up in stack ? why not solve it differently by making this functionality filterable or overwriteable ? |
I can't tell which paths are actual routes and which are from the "middleware" ( |
ok |
This is now complete. |
Sorry for abusing this issue to message you. Have you made any progress on this sveltekit-fiber package? I'm very interested! |
@leonklingele I've made a lot of progress. I am looking for some help though. I can give a demo. We can meet up on zoom. |
@pjebs sent you an email, hope it's the correct address I used. |
@leonklingele which email address? I didn't receive. Try planetpjs@hotmail.com |
Feature Description
Let say I have a route path like this:
"/user/:name/books/:title"
.I need the function used by fiber's router to check if a url matches that path.
Perhaps:
I believe the matching is done here: https://github.com/gofiber/fiber/blob/master/router.go#L64 (unexported)
Additional Context (optional)
Currently I am doing it like this as a workaround:
This approach makes the path and all the methods end up in
app.Stack()
.Since I am essentially building middleware, I don't want it to appear as route(s).
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: