mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 22:52:32 +01:00
36 lines
599 B
PHP
36 lines
599 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)
|
|
{
|
|
return $this->tmdb->suggestions($tmdbID);
|
|
}
|
|
|
|
public function trending()
|
|
{
|
|
return $this->tmdb->trending();
|
|
}
|
|
|
|
public function upcoming()
|
|
{
|
|
return $this->tmdb->upcoming();
|
|
}
|
|
} |