mirror of
https://github.com/koel/koel
synced 2024-12-25 12:03:06 +00:00
13 lines
309 B
PHP
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));
|
|
}
|
|
}
|