Skip to content

Commit

Permalink
Make some routes stateless
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel committed Jun 9, 2024
1 parent 39122f1 commit 2ff9720
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'));

0 comments on commit 2ff9720

Please sign in to comment.