初始化基础模型
This commit is contained in:
33
app/Http/Controllers/IndexController.php
Executable file
33
app/Http/Controllers/IndexController.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user