<?php
 namespace Module\Doc\Web\Controller; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Member\Support\MemberLoginCheck; class DocController extends ModuleBaseController implements MemberLoginCheck { private $api; public function __construct() { $this->api = app(\Module\Doc\Api\Controller\DocController::class); } public function index() { return $this->view('doc.index'); } public function paginate() { return Response::jsonFromGenerate($this->api->paginate()); } public function get() { return Response::jsonFromGenerate($this->api->get()); } public function edit() { return Response::jsonFromGenerate($this->api->edit()); } public function setting() { return Response::jsonFromGenerate($this->api->setting()); } public function publish() { return Response::jsonFromGenerate($this->api->publish()); } public function delete() { return Response::jsonFromGenerate($this->api->delete()); } }