add: json error message
This commit is contained in:
parent
464a9c7dbc
commit
1034dd30f9
@ -235,7 +235,7 @@ class Router
|
|||||||
if ($controller) {
|
if ($controller) {
|
||||||
$controller($this->request, $this->response);
|
$controller($this->request, $this->response);
|
||||||
} else {
|
} else {
|
||||||
echo "404";
|
$this->response->json(["status" => "404", "message" => "Not found"], 404);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user