Start working on tasks feature

This commit is contained in:
Bernd Bestel
2018-09-22 22:01:32 +02:00
parent bcb359e317
commit 6fe0100927
13 changed files with 477 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Grocy\Controllers;
use \Grocy\Services\TasksService;
class TasksApiController extends BaseApiController
{
public function __construct(\Slim\Container $container)
{
parent::__construct($container);
$this->TasksService = new TasksService();
}
protected $TasksService;
public function Current(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args)
{
return $this->ApiResponse($this->TasksService->GetCurrent());
}
}