Remove admin routes

This commit is contained in:
floppydiskette 2024-07-12 16:23:55 +01:00
parent 220f858759
commit 8db67c2b47
Signed by: fwoppydwisk
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE

View file

@ -1,8 +1,5 @@
<?php
use App\Http\Controllers\AdminBookmarksController;
use App\Http\Controllers\AdminGuestbookController;
use App\Http\Controllers\AdminImportController;
use App\Http\Controllers\BookmarksController;
use App\Http\Controllers\CalculatorsController;
use App\Http\Controllers\ComputersController;
@ -31,13 +28,3 @@
Route::get('/music', [MusicController::class, 'show']);
Route::post('/guestbook', [GuestbookController::class, 'addEntry'])
->middleware('rate_limit');
// Admin pages
Route::prefix('admin')->group(function () {
Route::get('/admin/guestbook', [AdminGuestbookController::class, 'show']);
Route::get('/admin/bookmarks', [AdminBookmarksController::class, 'show']);
Route::get('/admin/import', [AdminImportController::class, 'show']);
Route::post('/admin/import', [AdminImportController::class, 'submit'])
->name('admin.import.submit');
})->middleware('auth');