about summary refs log tree commit diff stats
path: root/classes/Router.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-27 22:24:45 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-27 22:24:45 +0300
commit69b46e2fd39294d347206edd8b4ea01b749bdb51 (patch)
tree2425f9aadac012bc8f39a16ecf52af16c074f43b /classes/Router.php
parent8d22861efda3b41e5fffce8b12638019b438587c (diff)
downloadthe-epube-69b46e2fd39294d347206edd8b4ea01b749bdb51.tar.gz
the-epube-69b46e2fd39294d347206edd8b4ea01b749bdb51.tar.xz
update some error messages, add tests for cover
Diffstat (limited to 'classes/Router.php')
-rw-r--r--classes/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Router.php b/classes/Router.php
index 79882ce..bae01ec 100644
--- a/classes/Router.php
+++ b/classes/Router.php
@@ -25,7 +25,7 @@ class Router
 		if (!$handler) {
 			$response = (new Response())
 				->withStatus(404)
-				->withBody("Method not found.");
+				->withBody(json_encode(["error" => "Method not found"]));
 			$response->send();
 			exit;
 		}