group(function () { Route::apiResource('songs', SongController::class); Route::post('/service-songs/{serviceSongId}/assign', [ServiceSongController::class, 'assignSong']) ->name('api.service-songs.assign'); Route::post('/service-songs/{serviceSongId}/request', [ServiceSongController::class, 'requestSong']) ->name('api.service-songs.request'); Route::post('/service-songs/{serviceSongId}/unassign', [ServiceSongController::class, 'unassign']) ->name('api.service-songs.unassign'); Route::patch('/service-songs/{serviceSongId}', [ServiceSongController::class, 'update']) ->name('api.service-songs.update'); // Übersetzung Route::post('/translation/fetch-url', [TranslationController::class, 'fetchUrl']) ->name('api.translation.fetch-url'); Route::post('/songs/{song}/translation/import', [TranslationController::class, 'import']) ->name('api.songs.translation.import'); Route::delete('/songs/{song}/translation', [TranslationController::class, 'destroy']) ->name('api.songs.translation.destroy'); });