You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
601 B
PHP
31 lines
601 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Controllers;
|
|
|
|
use Engelsystem\Http\Response;
|
|
|
|
class ApiController extends BaseController
|
|
{
|
|
/** @var Response */
|
|
protected $response;
|
|
|
|
/**
|
|
* @param Response $response
|
|
*/
|
|
public function __construct(Response $response)
|
|
{
|
|
$this->response = $response;
|
|
}
|
|
|
|
/**
|
|
* @return Response
|
|
*/
|
|
public function index()
|
|
{
|
|
return $this->response
|
|
->setStatusCode(501)
|
|
->withHeader('content-type', 'application/json')
|
|
->withContent(json_encode(['error' => 'Not implemented']));
|
|
}
|
|
}
|