fixed gallery
This commit is contained in:
@@ -145,3 +145,21 @@ Route::middleware(['web', 'auth', 'normalize.username'])->prefix('artworks')->na
|
||||
Route::put('{id}/tags', [\App\Http\Controllers\Api\ArtworkTagController::class, 'update'])->whereNumber('id')->name('update');
|
||||
Route::delete('{id}/tags/{tag}', [\App\Http\Controllers\Api\ArtworkTagController::class, 'destroy'])->whereNumber('id')->name('destroy');
|
||||
});
|
||||
|
||||
Route::middleware(['web', 'auth', 'normalize.username'])->group(function () {
|
||||
Route::post('artworks/{id}/favorite', [\App\Http\Controllers\Api\ArtworkInteractionController::class, 'favorite'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.favorite');
|
||||
|
||||
Route::post('artworks/{id}/like', [\App\Http\Controllers\Api\ArtworkInteractionController::class, 'like'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.like');
|
||||
|
||||
Route::post('artworks/{id}/report', [\App\Http\Controllers\Api\ArtworkInteractionController::class, 'report'])
|
||||
->whereNumber('id')
|
||||
->name('api.artworks.report');
|
||||
|
||||
Route::post('users/{id}/follow', [\App\Http\Controllers\Api\ArtworkInteractionController::class, 'follow'])
|
||||
->whereNumber('id')
|
||||
->name('api.users.follow');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user