API V1 torrents list/search URI changed.
This commit is contained in:
parent
296850e482
commit
81eb903d21
|
@ -17,8 +17,8 @@ torrents_show:
|
||||||
id: '\d+'
|
id: '\d+'
|
||||||
|
|
||||||
# API
|
# API
|
||||||
api_v1_torrents_search:
|
api_v1_torrents:
|
||||||
path: /api/v1/torrents/search
|
path: /api/v1/torrents
|
||||||
controller: App\Api\V1\Controller\TorrentController::search
|
controller: App\Api\V1\Controller\TorrentController::search
|
||||||
defaults:
|
defaults:
|
||||||
_format: json
|
_format: json
|
||||||
|
|
|
@ -7,8 +7,7 @@ use App\Repository\TorrentRepository;
|
||||||
use Pagerfanta\Adapter\DoctrineORMAdapter;
|
use Pagerfanta\Adapter\DoctrineORMAdapter;
|
||||||
use Pagerfanta\Pagerfanta;
|
use Pagerfanta\Pagerfanta;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\{Request, Response};
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
|
||||||
|
|
||||||
class TorrentController extends Controller
|
class TorrentController extends Controller
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue