done #3
@ -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