Create Index.php
This commit is contained in:
19
app/index/controller/Index.php
Normal file
19
app/index/controller/Index.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\BaseController;
|
||||
use think\facade\Env;
|
||||
use think\response\Redirect;
|
||||
|
||||
class Index extends BaseController
|
||||
{
|
||||
/**
|
||||
* @return Redirect
|
||||
*/
|
||||
public function index(): Redirect
|
||||
{
|
||||
// 这是项目首页 系统默认跳转后台页面
|
||||
return redirect('/' . Env::get('EASYADMIN.ADMIN', false));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user