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

Improve detection of route /gps/.../detalhes #62

Closed
jfoclpf opened this issue Nov 18, 2022 · 0 comments
Closed

Improve detection of route /gps/.../detalhes #62

jfoclpf opened this issue Nov 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jfoclpf
Copy link
Collaborator

jfoclpf commented Nov 18, 2022

https://github.com/jfoclpf/geoapi.pt/blob/343a47e4155c3de23182582a366bbe6a90904a5b/src/server/routes/gps.js#L52

It should be

... || (req.path && req.path.endsWith('/detalhes'))

reference: https://expressjs.com/en/api.html#req.path

@jfoclpf jfoclpf added the enhancement New feature or request label Nov 18, 2022
@jfoclpf jfoclpf changed the title replace the req.key Improve detection of route /gps/.../detalhes Nov 18, 2022
jfoclpf added a commit that referenced this issue Nov 19, 2022
@jfoclpf jfoclpf closed this as completed Nov 19, 2022
jfoclpf added a commit that referenced this issue Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant