$settings must be passed into route function

This commit is contained in:
Uwe Steinmann 2025-03-21 13:20:04 +01:00
parent 0e6f14dbaf
commit a4899a52ad

View File

@ -81,7 +81,7 @@ if(true) {
}
/* Catch all route */
$app->get('/{path:.*}', function($request, $response) {
$app->get('/{path:.*}', function($request, $response) use ($settings) {
return $response
->withHeader('Location', $settings->_httpRoot.'out/out.ViewFolder.php')
->withStatus(302);