This commit is contained in:
杨志
2026-01-22 14:35:17 +08:00
parent edc9218063
commit 42118bec62
2 changed files with 1 additions and 13 deletions

View File

@@ -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;
} }
} }

View File

@@ -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');