mirror of
https://github.com/nextcloud/tables.git
synced 2026-02-02 00:05:11 +00:00
31 lines
697 B
PHP
31 lines
697 B
PHP
<?php
|
|
|
|
namespace OCA\Tables\Controller;
|
|
|
|
use OCA\Tables\AppInfo\Application;
|
|
use OCA\Tables\Db\Table;
|
|
use OCA\Tables\Service\TableTemplateService;
|
|
use OCP\AppFramework\Controller;
|
|
use OCP\AppFramework\Http\DataResponse;
|
|
use OCP\IRequest;
|
|
|
|
class TableTemplateController extends Controller {
|
|
/** @var TableTemplateService */
|
|
private $service;
|
|
|
|
|
|
public function __construct(IRequest $request,
|
|
TableTemplateService $service) {
|
|
parent::__construct(Application::APP_ID, $request);
|
|
$this->service = $service;
|
|
}
|
|
|
|
/**
|
|
* @NoAdminRequired
|
|
*/
|
|
public function list(): DataResponse {
|
|
return new DataResponse($this->service->getTemplateList());
|
|
}
|
|
|
|
}
|