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

15 lines
366 B
PHP
Raw Normal View History

2015-08-31 16:30:02 +02:00
<?php
2015-09-06 19:21:11 +02:00
namespace App\Http\Controllers\Api\Web;
2015-08-31 16:30:02 +02:00
use App\Commands\ToggleFollowingCommand;
2015-09-06 19:21:11 +02:00
use App\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')));
}
}