Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Override base path #691

@camlafit

Description

@camlafit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions