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

Override base path #691

Open
camlafit opened this issue Nov 30, 2023 · 0 comments
Open

Override base path #691

camlafit opened this issue Nov 30, 2023 · 0 comments

Comments

@camlafit
Copy link
Contributor

camlafit commented Nov 30, 2023

Hello

I use a library to manage all application route (in my case https://github.com/nikic/FastRoute)
I've configured my index to load restler part from a specific path. (https://domain.tl/api/)

In this case Restler can't run correctly as a Restler::getPath() exploit $_SERVER['SCRIPT_NAME'] to detect base path. In this case base is set to / and not /api/

Could be nice to provide a configuration/default value to override this base. Maybe I've missed an option to manage this use case.

I've tried with V5

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

1 participant