From e948091066e4893b1b823fc80db1c1ebba174b53 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 20 Nov 2018 18:55:56 +0100 Subject: Replaced old /api endpoint with ApiController --- src/Controllers/ApiController.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/Controllers/ApiController.php (limited to 'src/Controllers/ApiController.php') diff --git a/src/Controllers/ApiController.php b/src/Controllers/ApiController.php new file mode 100644 index 00000000..a9c0be98 --- /dev/null +++ b/src/Controllers/ApiController.php @@ -0,0 +1,30 @@ +response = $response; + } + + /** + * @return Response + */ + public function index() + { + return $this->response + ->setStatusCode(501) + ->withHeader('content-type', 'application/json') + ->withContent(json_encode(['error' => 'Not implemented'])); + } +} -- cgit v1.2.3-70-g09d2