From 2ff972032808e723ba3a11b95116af0def027054 Mon Sep 17 00:00:00 2001 From: Austin Kregel <5355937+austinkregel@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:43:02 -0400 Subject: [PATCH] Make some routes stateless --- routes/web.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/web.php b/routes/web.php index 1c0cf8df..4f97be8a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -5,6 +5,10 @@ if (file_exists(base_path('routes/generate-pages.php'))) { include_once base_path('routes/generate-pages.php'); } +Route::domain(config('app.env') == 'production' ? 'deploy.kregel.host' : 'deploy.localhost') + ->middleware('throttle:api') + ->withoutMiddleware(['web']) + ->group(base_path('routes/pages/deploy.php')); Route::prefix('api') ->domain(config('app.env') == 'production' ? 'spork.zone' : 'spork.localhost') @@ -19,9 +23,5 @@ ->domain(config('app.env') == 'production' ? 'spork.zone' : 'spork.localhost') ->group(base_path('routes/pages/spork.php')); -Route::middleware('api') - ->domain(config('app.env') == 'production' ? 'deploy.kregel.host' : 'deploy.localhost') - ->group(base_path('routes/pages/deploy.php')); - Route::domain(env('LINK_SHORTENING_DOMAIN', '')) ->group(base_path('routes/pages/link-shortening.php'));