mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
22 lines
465 B
PHP
22 lines
465 B
PHP
<?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());
|
|
}
|
|
}
|