Skip to content

(fix) bypass root route in lazarus #26

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

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

gabrielbaltazar
Copy link
Member

in Lazarus the Req.Web Request.PathInfo returns empty for the '/' route, so if this route is in the skip route, lazarus was not recognizing it.

  THorse.Use(HorseJWT('my-private-key', THorseJWTConfig.New.SkipRoutes(['/']) ));

  THorse
    .Get('/ping', GetPing)
    .Get('/', GetRoot);      

@viniciussanchez viniciussanchez added the bug Something isn't working label Feb 17, 2022
@viniciussanchez viniciussanchez merged commit bf4bf8b into HashLoad:master Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants