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.
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 outrootPath
.