mirror of
https://github.com/koel/koel
synced 2024-12-25 12:03:06 +00:00
22 lines
580 B
PHP
22 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Interaction;
|
|
|
|
use App\Http\Requests\API\BatchInteractionRequest;
|
|
|
|
class BatchLikeController extends Controller
|
|
{
|
|
public function store(BatchInteractionRequest $request)
|
|
{
|
|
$interactions = $this->interactionService->batchLike((array) $request->songs, $this->user);
|
|
|
|
return response()->json($interactions);
|
|
}
|
|
|
|
public function destroy(BatchInteractionRequest $request)
|
|
{
|
|
$this->interactionService->batchUnlike((array) $request->songs, $this->user);
|
|
|
|
return response()->noContent();
|
|
}
|
|
}
|