diff options
Diffstat (limited to 'routes/web.php')
| -rwxr-xr-x | routes/web.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routes/web.php b/routes/web.php index e2cf097..df3f526 100755 --- a/routes/web.php +++ b/routes/web.php @@ -80,8 +80,8 @@ Route::middleware(['auth', 'throttle:admin', \App\Http\Middleware\Admin::class]) Route::get('/admin', [AdminController::class, 'index'])->name('admin'); Route::post('/l/import', [LinkController::class, 'import'])->name('l.import'); Route::get('/env', [SiteController::class, 'env']); - Route::get('/4', [SiteController::class, 'search4chan']); }); +Route::post('/4', [SiteController::class, 'search4chan']); // Public read-only routes Route::resource('w', WritingController::class)->only(['index', 'show']); @@ -102,7 +102,7 @@ Route::post('/update-session', function(Request $req){ require __DIR__.'/auth.php'; -Route::get('/toy/{v?}', function($v = null){ +/*Route::get('/toy/{v?}', function($v = null){ if (is_null($v)){ return view('toys.index'); } @@ -114,7 +114,7 @@ Route::get('/toy/{v?}', function($v = null){ abort(404); } return view('toys.'.$v); -}); +});*/ // Audio stream - requires auth to prevent abuse Route::get('/stream/audio', function() { @@ -146,7 +146,7 @@ Route::get('/newtab', function() { // Catch-all: only allow specific whitelisted views Route::get('/{v}', function($v){ - $allowed = ['notes', 'kyanite', 'marked', 'v']; + $allowed = ['notes', 'kyanite', 'marked', 'v', '4']; if (!in_array($v, $allowed)) { abort(404); } |
