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+'
|
|
|
|
|
2019-01-29 17:32:16 +00:00
|
|
|
# Mainly for Telegram bot
|
|
|
|
magnet_redirect:
|
|
|
|
path: /magnet/{infoHash}
|
|
|
|
controller: App\Controller\MagnetRedirectController::redirect
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
# SHA-1 hash
|
|
|
|
infoHash: '[0-9a-fA-F]{40}'
|
|
|
|
|
2018-06-24 22:42:26 +00:00
|
|
|
user_register:
|
2020-01-20 17:01:51 +00:00
|
|
|
path: /register/{code}
|
2018-06-24 22:42:26 +00:00
|
|
|
controller: App\Controller\UserController::register
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
inviteCode: \w{32}
|
|
|
|
|
2020-01-20 17:01:51 +00:00
|
|
|
user_reset_request:
|
|
|
|
path: /auth/reset/request
|
|
|
|
controller: App\Controller\UserController::requestReset
|
|
|
|
|
|
|
|
user_reset:
|
|
|
|
path: /auth/reset/{code}
|
|
|
|
controller: App\Controller\UserController::reset
|
|
|
|
|
|
|
|
user_auth_login:
|
|
|
|
path: /auth/login
|
|
|
|
controller: App\Controller\SecurityController::login
|
|
|
|
|
|
|
|
user_auth_logout:
|
|
|
|
path: /auth/logout
|
|
|
|
|
2020-07-01 23:12:49 +00:00
|
|
|
user_account:
|
|
|
|
path: /account
|
|
|
|
controller: App\Controller\AccountController::account
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
|
|
|
|
user_account_token_create:
|
|
|
|
path: /profile/api/token/create
|
|
|
|
controller: App\Controller\AccountController::addApiToken
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
|
|
|
|
user_account_token_revoke:
|
|
|
|
path: /profile/api/token/revoke/{key}
|
|
|
|
controller: App\Controller\AccountController::revokeApiToken
|
2018-06-28 19:22:00 +00:00
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
|
2018-06-22 19:45:17 +00:00
|
|
|
# API
|
2018-06-26 17:48:52 +00:00
|
|
|
api_v1_login:
|
2018-06-25 21:56:32 +00:00
|
|
|
path: /api/v1/login
|
|
|
|
controller: App\Api\V1\Controller\SecurityController::login
|
|
|
|
defaults:
|
|
|
|
_format: json
|
|
|
|
requirements:
|
|
|
|
method: POST
|
|
|
|
_format: json
|
|
|
|
|
2018-06-26 23:15:39 +00:00
|
|
|
api_v1_logout:
|
|
|
|
path: /api/v1/logout
|
|
|
|
controller: App\Api\V1\Controller\SecurityController::logout
|
|
|
|
defaults:
|
|
|
|
_format: json
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
_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
|
2020-04-03 23:59:47 +00:00
|
|
|
id: '\d+'
|
|
|
|
|
|
|
|
api_v1_rss_last:
|
|
|
|
path: /api/v1/feed/rss/last
|
|
|
|
controller: App\Api\V1\Controller\RssController::last
|
|
|
|
defaults:
|
|
|
|
_format: xml
|
|
|
|
requirements:
|
|
|
|
method: GET
|
|
|
|
_format: xml
|