Default controller methods

pull/1/head
sundowndev 2018-07-08 21:46:47 +02:00
parent 3856b671aa
commit 4f85408524
1 changed files with 2 additions and 8 deletions

View File

@ -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.');
}
}