Pony.fm/app/Http/Controllers/Api/Web/FollowController.php

15 lines
405 B
PHP
Raw Normal View History

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