2015-08-31 16:30:02 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-24 03:22:14 +02:00
|
|
|
namespace Poniverse\Ponyfm\Http\Controllers\Api\Web;
|
2015-08-31 16:30:02 +02:00
|
|
|
|
2015-10-24 03:22:14 +02:00
|
|
|
use Poniverse\Ponyfm\Commands\ToggleFollowingCommand;
|
|
|
|
use Poniverse\Ponyfm\Http\Controllers\ApiControllerBase;
|
2015-08-31 16:30:02 +02:00
|
|
|
use Illuminate\Support\Facades\Input;
|
|
|
|
|
2015-09-06 19:21:11 +02:00
|
|
|
class FollowController extends ApiControllerBase
|
2015-08-31 16:30:02 +02:00
|
|
|
{
|
|
|
|
public function postToggle()
|
|
|
|
{
|
|
|
|
return $this->execute(new ToggleFollowingCommand(Input::get('type'), Input::get('id')));
|
|
|
|
}
|
|
|
|
}
|