mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 08:37:59 +01:00
12 lines
294 B
PHP
12 lines
294 B
PHP
|
<?php
|
||
|
|
||
|
namespace Api\Web;
|
||
|
|
||
|
use Commands\ToggleFavouriteCommand;
|
||
|
use Illuminate\Support\Facades\Input;
|
||
|
|
||
|
class FavouritesController extends \ApiControllerBase {
|
||
|
public function postToggle() {
|
||
|
return $this->execute(new ToggleFavouriteCommand(Input::get('type'), Input::get('id')));
|
||
|
}
|
||
|
}
|