From 83f21d0ddf6809a44901bd37fb33c6f75d25942b Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 24 Feb 2022 13:41:16 -0800 Subject: [PATCH] Added a comment about why we use the middleware there Signed-off-by: snipe --- routes/api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/api.php b/routes/api.php index e6f841531..eec8920d6 100644 --- a/routes/api.php +++ b/routes/api.php @@ -11,6 +11,10 @@ use Illuminate\Http\Request; | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | +| We *could* put the middleware speficication in the RouteServiceProvider's mapApiRoutes() +| method, but we felt it was clearer to keep it here, since we look at the api routes for more +| often than we look at the RouteServiceProvider. - @snipe +| */