Fixed templates paths
This commit is contained in:
parent
d6ad0779b3
commit
8eb74fc5c1
|
@ -431,7 +431,7 @@ App::get('/robots.txt')
|
|||
->label('scope', 'public')
|
||||
->label('docs', false)
|
||||
->action(function ($response) {
|
||||
$template = new View(__DIR__.'/views/general/robots.phtml');
|
||||
$template = new View(__DIR__.'/../views/general/robots.phtml');
|
||||
$response->text($template->render(false));
|
||||
}, ['response']);
|
||||
|
||||
|
@ -440,7 +440,7 @@ App::get('/humans.txt')
|
|||
->label('scope', 'public')
|
||||
->label('docs', false)
|
||||
->action(function ($response) {
|
||||
$template = new View(__DIR__.'/views/general/humans.phtml');
|
||||
$template = new View(__DIR__.'/../views/general/humans.phtml');
|
||||
$response->text($template->render(false));
|
||||
}, ['response']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue