1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 22:52:32 +01:00
flox/backend/app/Http/Controllers/TMDBController.php
2017-02-13 21:17:33 +01:00

37 lines
624 B
PHP

<?php
namespace App\Http\Controllers;
use App\Services\TMDB;
use Illuminate\Support\Facades\Input;
class TMDBController {
private $tmdb;
public function __construct(TMDB $tmdb)
{
$this->tmdb = $tmdb;
}
public function search()
{
return $this->tmdb->search(Input::get('q'));
}
public function suggestions($tmdbID, $mediaType)
{
return $this->tmdb->suggestions($mediaType, $tmdbID);
}
public function trending()
{
return $this->tmdb->trending();
}
public function upcoming()
{
return $this->tmdb->upcoming();
}
}