API V1 torrents list/search URI changed.

This commit is contained in:
Alexey Skobkin 2018-06-22 22:58:36 +03:00
parent 296850e482
commit 81eb903d21
2 changed files with 3 additions and 4 deletions

View file

@ -17,8 +17,8 @@ torrents_show:
id: '\d+'
# API
api_v1_torrents_search:
path: /api/v1/torrents/search
api_v1_torrents:
path: /api/v1/torrents
controller: App\Api\V1\Controller\TorrentController::search
defaults:
_format: json

View file

@ -7,8 +7,7 @@ use App\Repository\TorrentRepository;
use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\Pagerfanta;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\{Request, Response};
class TorrentController extends Controller
{