mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 01:32:25 +01:00
Make index page files available at /
route
This commit is contained in:
parent
bdd5a0198c
commit
854e058500
@ -214,6 +214,9 @@ class Formwork
|
||||
} else {
|
||||
$filename = basename($route);
|
||||
$upperLevel = dirname($route);
|
||||
if ($upperLevel === '.') {
|
||||
$upperLevel = $this->option('pages.index');
|
||||
}
|
||||
if ($parent = $this->site->findPage($upperLevel)) {
|
||||
if ($file = $parent->file($filename)) {
|
||||
return HTTPResponse::file($file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user