Page
Returning a Page object will automatically render the HTML response for that page.
return [
'routes' => [
[
'pattern' => 'custom/response',
'action' => function () {
return page('projects');
}
]
]
];
Returning a Page object will automatically render the HTML response for that page.
return [
'routes' => [
[
'pattern' => 'custom/response',
'action' => function () {
return page('projects');
}
]
]
];