controller HTML response

This commit is contained in:
2025-11-04 10:55:58 +07:00
parent 36b48d14d1
commit e38a870e71

View File

@@ -41,8 +41,8 @@ final class index extends core
*/ */
public function index(): null public function index(): null
{ {
if (str_contains($$this->request->headers['accept'], content::any->value)) { if (str_contains($$this->request->headers['accept'] ?? '', content::html->value)) {
// Request for any response // Request for HTML response
// Render page // Render page
$$page = $$this->view->render('index.html'); $$page = $$this->view->render('index.html');