Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
unicate committed Jun 6, 2020
1 parent 40f6d89 commit 700465d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
use Nofw\Core\Config;

class ApiController extends AbstractController {
private $config;
private $model;

public function __construct(Config $config, UserModel $model) {
$this->config = $config;
public function __construct(UserModel $model) {
$this->model = $model;
}

public function index(ServerRequestInterface $request, array $args): ResponseInterface {
return $this->json([
'data' => 'some data',
'db_data' => $this->model->info(),
'links' => [
'link1' => 'http://link1.com',
'link2' => 'http://link2.com'
Expand Down

0 comments on commit 700465d

Please sign in to comment.