Skip to content
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

Check if current route matches route string #312

Open
imolorhe opened this issue Dec 10, 2015 · 2 comments
Open

Check if current route matches route string #312

imolorhe opened this issue Dec 10, 2015 · 2 comments

Comments

@imolorhe
Copy link

Hi,

Is it possible to check if the current request route matches a route string in klein? I am trying to do a permission check based for each route the user accesses.

@dhaya6027
Copy link

I m having the same need. is there a solution to this one

@leicht-io
Copy link

You might be able to use Klein->request()->pathname().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants