<?php
 namespace Module\ShortLink\Web\Controller; use Illuminate\Support\Facades\View; use ModStart\Core\Input\Request; use ModStart\Module\ModuleBaseController; class WorkbenchLinkController extends ModuleBaseController { private $api; private $viewMemberFrame; public function __construct() { list($this->viewMemberFrame, $_) = $this->viewPaths('member.frame'); View::share('_viewMemberFrame', $this->viewMemberFrame); $this->api = app(\Module\ShortLink\Api\Controller\WorkbenchLinkController::class); } public function generate() { return $this->view('workbench.linkGenerate'); } public function manage() { if (Request::isPost()) { return $this->api->paginate(); } return $this->view('workbench.linkManage'); } public function report() { if (Request::isPost()) { return $this->api->report(); } return $this->view('workbench.linkReport'); } }