koel/app/Http/Controllers/API/Interaction/LikeController.php
2022-07-04 10:36:39 +02:00

13 lines
309 B
PHP

<?php
namespace App\Http\Controllers\API\Interaction;
use App\Http\Requests\API\SongLikeRequest;
class LikeController extends Controller
{
public function store(SongLikeRequest $request)
{
return response()->json($this->interactionService->toggleLike($request->song, $this->user));
}
}