From e24d907fa5f69bc0e41bf04bb7b890fcd4fe3ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Wed, 5 Jan 2022 14:43:16 +0800 Subject: [PATCH] Update --- routes/web.php | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/routes/web.php b/routes/web.php index b1303973..b8d4384e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2,17 +2,9 @@ use Illuminate\Support\Facades\Route; -/* -|-------------------------------------------------------------------------- -| Web Routes -|-------------------------------------------------------------------------- -| -| Here is where you can register web routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| contains the "web" middleware group. Now create something great! -| -*/ - -Route::get('/', function () { - return view('welcome'); +Route::fallback(function () { + return response()->json([ + 'errcode' => 404, + 'message' => 'Not Found', + ], 404); });