Closed toby3d closed 4 years ago
Hi @toby3d,
I will try to discover the error and i will fix it.
Thanks for issue.
Hi @toby3d,
Which values could have the :slug
parameter?
Any alphanum combinations and '-', like: 'hello-world', 'answer42', '300-is-not-200' and so on.
In general, I expect that any parameter in the root (/:slug
, /:page/raw
, /:player/vs/:enemy
and etc.) will work same as any other parameters in any other routes (/user/:user
, /hello/:first/:last
).
I'm researching about the issue. When I have something, I will tell here.
I'm working for make the router more flexible, but i will take a few more days.
@toby3d
@savsgio That's ok, take your time. 👍🏻
I've been fixed it on branch master.
Soon, i will release a new version!
Thanks
Same as buaazp/fasthttprouter#49.
I want use
/
path for render index page and/:slug
for render specific content by it's:slug
. I am aware about the hack throughrouter.NotFound
, but, firstly, this is not most obvious way, and secondly, it requires additional validations for the correct transitions between the necessary pages.Example