mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
Add post deletion w/ confirmation, search (broken), profile page
This commit is contained in:
parent
bfb497c367
commit
827d125639
21 changed files with 374 additions and 27 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use App\Http\Controllers\DeletionController;
|
||||
use App\Livewire\App\Home as AppHome;
|
||||
use App\Livewire\Pages\Profile as ProfilePage;
|
||||
use App\Livewire\Pages\Upload as UploadPage;
|
||||
use App\Livewire\Posts\Index as PostsPage;
|
||||
use App\Livewire\Posts\Edit as EditPost;
|
||||
|
|
@ -15,6 +16,7 @@ Route::get('/', AppHome::class)->name('home');
|
|||
// Authenticated routes
|
||||
Route::middleware('auth')->group(function () {
|
||||
Route::get('/upload', UploadPage::class)->name('upload');
|
||||
Route::get('/profiles/{user}', ProfilePage::class);
|
||||
});
|
||||
|
||||
// Post routes
|
||||
|
|
@ -30,4 +32,5 @@ Route::middleware('auth')->prefix('posts')->group(function () {
|
|||
// Object deletion routes
|
||||
Route::middleware('auth')->prefix('delete')->controller(DeletionController::class)->group(function () {
|
||||
Route::get('comment/{comment}', 'deleteComment');
|
||||
Route::get('post/{post}', 'deletePost');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue