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:
|
2018-06-25 01:02:27 +00:00
|
|
|
path: /torrents
|
2018-06-22 19:45:17 +00:00
|
|
|
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-24 22:42:26 +00:00
|
|
|
user_register:
|
|
|
|
path: /register/{inviteCode}
|
|
|
|
controller: App\Controller\UserController::register
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
inviteCode: \w{32}
|
|
|
|
|
2018-06-25 01:02:27 +00:00
|
|
|
user_login:
|
|
|
|
path: /login
|
|
|
|
controller: App\Controller\SecurityController::login
|
|
|
|
|
|
|
|
user_logout:
|
|
|
|
path: /logout
|
|
|
|
|
2018-06-22 19:45:17 +00:00
|
|
|
# API
|
2018-06-25 21:56:32 +00:00
|
|
|
api_login:
|
|
|
|
path: /api/v1/login
|
|
|
|
controller: App\Api\V1\Controller\SecurityController::login
|
|
|
|
defaults:
|
|
|
|
_format: json
|
|
|
|
requirements:
|
|
|
|
method: POST
|
|
|
|
_format: json
|
|
|
|
|
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+'
|