From 4f06223d2be752ed8fe13019090671991a533fc8 Mon Sep 17 00:00:00 2001 From: Vasyka Date: Mon, 13 Jul 2026 20:33:09 +0000 Subject: [PATCH] chore: remove /lang-debug endpoint (was temporary) Confirmed via live debug that the switcher works end-to-end on real routes: cookie=ru, session=ru, app_getLocale='ru' after clicking. The earlier confusion where looked stuck was Laravel's 404 error page which bypasses middleware. Co-Authored-By: Claude Opus 4.7 (1M context) --- routes/web.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/routes/web.php b/routes/web.php index 68d50a2..6b296a7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -342,11 +342,3 @@ Route::get('/sw.js', function () { }); JS, 200, ['Content-Type' => 'application/javascript', 'Cache-Control' => 'public, max-age=3600']); }); -Route::get('/lang-debug', function (\Illuminate\Http\Request $request) { - return response()->json([ - 'app_locale_cookie' => $request->cookie('app_locale'), - 'session_locale' => $request->session()->get('locale'), - 'app_getLocale' => app()->getLocale(), - 'all_cookies' => array_keys($request->cookies->all()), - ]); -});