From 4f854085246f3814b47cb1cefb027417243b061b Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 8 Jul 2018 21:46:47 +0200 Subject: [PATCH] Default controller methods --- server/src/Controller/DefaultController.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/server/src/Controller/DefaultController.php b/server/src/Controller/DefaultController.php index 30a6ca9..a6d22cc 100644 --- a/server/src/Controller/DefaultController.php +++ b/server/src/Controller/DefaultController.php @@ -18,10 +18,7 @@ class DefaultController */ public function index() { - print $this->jsonResponse->create([ - 'code' => 200, - 'message' => 'Hello! :)' - ], 200); + print $this->jsonResponse->create(200, 'Hello! :)'); } /** @@ -29,9 +26,6 @@ class DefaultController */ public function error() { - print $this->jsonResponse->create([ - 'code' => 404, - 'message' => 'Resource not found.' - ], 404); + print $this->jsonResponse->create(404, 'Resource not found.'); } } \ No newline at end of file