Remove legacy frontend assets and update gallery routes
This commit is contained in:
@@ -267,7 +267,7 @@ Route::middleware(['web', 'auth', 'normalize.username'])->prefix('artworks')->na
|
||||
});
|
||||
|
||||
// Artwork Awards
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:20,1'])
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:artwork-awards'])
|
||||
->prefix('artworks')
|
||||
->name('api.artworks.awards.')
|
||||
->group(function () {
|
||||
@@ -325,7 +325,7 @@ Route::middleware(['web', 'throttle:60,1'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.comments.index');
|
||||
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:30,1'])->group(function () {
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:20,1'])->group(function () {
|
||||
Route::post('artworks/{id}/comments', [\App\Http\Controllers\Api\ArtworkCommentController::class, 'store'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.comments.store');
|
||||
@@ -345,7 +345,7 @@ Route::middleware(['web', 'auth', 'normalize.username', 'throttle:30,1'])->group
|
||||
// GET /api/comments/{id}/reactions list comment reaction totals (public)
|
||||
// POST /api/comments/{id}/reactions toggle comment reaction (auth)
|
||||
|
||||
Route::middleware(['web', 'throttle:60,1'])->group(function () {
|
||||
Route::middleware(['web', 'throttle:reactions-read'])->group(function () {
|
||||
Route::get('artworks/{id}/reactions', [\App\Http\Controllers\Api\ReactionController::class, 'artworkReactions'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.reactions.index');
|
||||
@@ -355,7 +355,7 @@ Route::middleware(['web', 'throttle:60,1'])->group(function () {
|
||||
->name('api.comments.reactions.index');
|
||||
});
|
||||
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:60,1'])->group(function () {
|
||||
Route::middleware(['web', 'auth', 'normalize.username', 'throttle:reactions-write'])->group(function () {
|
||||
Route::post('artworks/{id}/reactions', [\App\Http\Controllers\Api\ReactionController::class, 'toggleArtworkReaction'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.reactions.toggle');
|
||||
|
||||
@@ -228,7 +228,7 @@ Route::get('/dashboard', [DashboardController::class, 'index'])
|
||||
->name('dashboard');
|
||||
|
||||
Route::middleware(['auth', 'creator.access'])->prefix('creator')->name('creator.')->group(function () {
|
||||
Route::get('/artworks', fn () => redirect()->route('dashboard.artworks.index'))->name('artworks');
|
||||
Route::get('/artworks', fn () => redirect()->route('studio.artworks'))->name('artworks');
|
||||
Route::get('/analytics', fn () => redirect()->route('studio.analytics'))->name('analytics');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user