mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
34 lines
601 B
PHP
Executable File
34 lines
601 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Module\Base;
|
|
use Redirect;
|
|
|
|
|
|
/**
|
|
* 页面
|
|
* Class IndexController
|
|
* @package App\Http\Controllers
|
|
*/
|
|
class IndexController extends InvokeController
|
|
{
|
|
/**
|
|
* 首页
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
*/
|
|
public function main()
|
|
{
|
|
return view('main', ['version' => Base::getVersion()]);
|
|
}
|
|
|
|
/**
|
|
* 接口文档
|
|
* @return \Illuminate\Http\RedirectResponse
|
|
*/
|
|
public function api()
|
|
{
|
|
return Redirect::to(Base::fillUrl('docs/index.html'), 301);
|
|
}
|
|
}
|