Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Slim 4 - setBasePath is not taken into account #178

@Misiu

Description

@Misiu

I have Slim 4 app that is deployed into a subfolder and called like so: https://subdomain.example.com/api/foo

Inside my code I have this line:
$app->setBasePath("/api");

According to the docs path and ignore shouldn't include basepath. But this doesn't work:

"path" => "/",
"ignore" => ["/foo"],

After adding basepath like below the code works:

"path" => "/api",
"ignore" => ["/api/foo"],

There are some differences between Slim 3 and Slim 4 according to @tuupola comment here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions