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

Root dir has trailing slash if indexfile is in root #110

Open
tyzoid opened this issue Apr 10, 2018 · 0 comments
Open

Root dir has trailing slash if indexfile is in root #110

tyzoid opened this issue Apr 10, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@tyzoid
Copy link
Collaborator

tyzoid commented Apr 10, 2018

If attempting to configure an API prefix while the api handler file is in the webroot, the api prefix will fail to be removed from the request path, since the root will be set to '/'.

thus, getPath should add a leading slash before attempting to trim out rootPath.

@tyzoid tyzoid added the Bug label Apr 10, 2018
@tyzoid tyzoid added this to the 1.3.0 Release milestone Apr 10, 2018
@tyzoid tyzoid self-assigned this Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant