From 71c3760c7c1b7485ec7afc89cfc6816f3e6f8f73 Mon Sep 17 00:00:00 2001 From: jhx <133451314@qq.com> Date: Tue, 23 Aug 2022 13:51:25 +0800 Subject: [PATCH] update --- app/controller/Index.php | 7 +++++++ config/route.php | 1 + 2 files changed, 8 insertions(+) diff --git a/app/controller/Index.php b/app/controller/Index.php index 366096f..a48348d 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -9,6 +9,13 @@ use support\Request; class Index { + + public function test() + { + echo 'test'; + } + + public function index(Request $request, $checkIp = null) { $ip = $request->getRealIp(); diff --git a/config/route.php b/config/route.php index 2bc6a65..578f0ca 100644 --- a/config/route.php +++ b/config/route.php @@ -15,6 +15,7 @@ use Webman\Route; Route::any('/', [\app\controller\Index::class, 'index']); +Route::any('/test', [\app\controller\Index::class, 'test']); Route::any('/check[/{ip}]', [\app\controller\Index::class, 'index']);