up
This commit is contained in:
@@ -8,11 +8,6 @@ class Index extends BaseController
|
|||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
return '<style>*{ padding: 0; margin: 0; }</style><iframe src="https://www.thinkphp.cn/welcome?version=' . \think\facade\App::version() . '" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>';
|
return '一个不知名的小工具';
|
||||||
}
|
|
||||||
|
|
||||||
public function hello($name = 'ThinkPHP8')
|
|
||||||
{
|
|
||||||
return 'hello,' . $name;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,13 +9,6 @@
|
|||||||
// | Author: liu21st <liu21st@gmail.com>
|
// | Author: liu21st <liu21st@gmail.com>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
use think\facade\Route;
|
use think\facade\Route;
|
||||||
|
|
||||||
Route::get('think', function () {
|
|
||||||
return 'hello,ThinkPHP8!';
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('hello/:name', 'index/hello');
|
|
||||||
|
|
||||||
// 认证路由(不需要登录)
|
// 认证路由(不需要登录)
|
||||||
Route::get('login', 'auth/login');
|
Route::get('login', 'auth/login');
|
||||||
Route::post('auth/doLogin', 'auth/doLogin');
|
Route::post('auth/doLogin', 'auth/doLogin');
|
||||||
|
|||||||
Reference in New Issue
Block a user