2018-06-22 19:45:17 +00:00
|
|
|
# Basic Front-End
|
2018-06-20 23:37:35 +00:00
|
|
|
index:
|
2018-06-20 19:30:00 +00:00
|
|
|
path: /
|
2018-06-20 23:37:35 +00:00
|
|
|
controller: App\Controller\MainController::index
|
|
|
|
|
2018-06-22 19:45:17 +00:00
|
|
|
torrents_search:
|
|
|
|
path: /torrents/search
|
|
|
|
controller: App\Controller\TorrentController::searchTorrent
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
|
|
|
|
torrents_show:
|
2018-06-20 23:37:35 +00:00
|
|
|
path: /torrents/{id}
|
|
|
|
controller: App\Controller\TorrentController::showTorrent
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
id: '\d+'
|
|
|
|
|
2018-06-22 19:45:17 +00:00
|
|
|
# API
|
2018-06-22 19:58:36 +00:00
|
|
|
api_v1_torrents:
|
|
|
|
path: /api/v1/torrents
|
2018-06-22 19:45:17 +00:00
|
|
|
controller: App\Api\V1\Controller\TorrentController::search
|
|
|
|
defaults:
|
|
|
|
_format: json
|
2018-06-20 23:37:35 +00:00
|
|
|
requirements:
|
2018-06-22 19:45:17 +00:00
|
|
|
method: GET
|
|
|
|
_format: json
|
|
|
|
|
|
|
|
api_v1_torrents_show:
|
|
|
|
path: /api/v1/torrents/{id}
|
|
|
|
controller: App\Api\V1\Controller\TorrentController::show
|
|
|
|
defaults:
|
|
|
|
_format: json
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
_format: json
|
|
|
|
id: '\d+'
|