Remove legacy frontend assets and update gallery routes

This commit is contained in:
2026-03-14 15:06:28 +01:00
parent 4f576ceb04
commit 78151aabfe
550 changed files with 826 additions and 108930 deletions

View File

@@ -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');