From deb170408db92e12bb9aaa971f30822b746edd8a Mon Sep 17 00:00:00 2001 From: Twilight Date: Thu, 25 Jul 2024 15:43:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=92=8C=E7=B2=BE=E7=AE=80?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/welcome.blade.php | 172 ------------------------------ routes/web.php | 6 +- 2 files changed, 5 insertions(+), 173 deletions(-) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index a9898e3..e69de29 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,172 +0,0 @@ - - - - - - - Laravel - - - - - - - - - -
- - -
- - diff --git a/routes/web.php b/routes/web.php index 9e05733..7ecfc70 100644 --- a/routes/web.php +++ b/routes/web.php @@ -10,4 +10,8 @@ Route::post('logout', [AuthController::class, 'logout'])->name('logout'); }); -Route::view('/', 'welcome')->name('home'); +Route::get('/', function () { + return response()->json([ + 'message' => 'Welcome to the Amber API', + ]); +});