mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
Add tag & tag group creation
This commit is contained in:
parent
f64afa649a
commit
f2950ec7eb
15 changed files with 330 additions and 22 deletions
|
|
@ -7,6 +7,8 @@ use App\Livewire\Pages\Upload as UploadPage;
|
|||
use App\Livewire\Posts\Index as PostsPage;
|
||||
use App\Livewire\Posts\Edit as EditPost;
|
||||
use App\Livewire\Posts\View as ViewPost;
|
||||
use App\Livewire\Tags\Index as TagsIndexPage;
|
||||
use App\Livewire\Tags\Groups as TagGroupsPage;
|
||||
use App\Models\Post;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
|
|
@ -29,8 +31,16 @@ Route::middleware('auth')->prefix('posts')->group(function () {
|
|||
});
|
||||
});
|
||||
|
||||
// Tag routes
|
||||
Route::middleware('auth')->prefix('tags')->group(function () {
|
||||
Route::get('/', TagsIndexPage::class)->name('tags.home');
|
||||
Route::get('/groups', TagGroupsPage::class)->name('tags.groups');
|
||||
});
|
||||
|
||||
// Object deletion routes
|
||||
Route::middleware('auth')->prefix('delete')->controller(DeletionController::class)->group(function () {
|
||||
Route::get('comment/{comment}', 'deleteComment');
|
||||
Route::get('post/{post}', 'deletePost');
|
||||
Route::get('tag/{tag}', 'deleteTag');
|
||||
Route::get('group/{tagGroup}', 'deleteTagGroup');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue