# Functions
APICheckTokenHandler : Check Token with API.
*
* @api {get} / Request Torrents index
* @apiVersion 1.1.1
* @apiName GetTorrents
* @apiGroup Torrents
*
* @apiParam {Number} id Torrent unique ID.
*
* @api {post} /login/ Login a user
* @apiVersion 1.1.1
* @apiName Login
* @apiGroup Users
*
* @apiParam {String} username Username or Email.
*
* @api {post} /profile/ Get a user profile
* @apiVersion 1.1.1
* @apiName Profile
* @apiGroup Users
*
* @apiParam {Number} id User ID.
APIRefreshTokenHandler : Refresh Token with API.
*
* @api {get} /search/ Search Torrents
* @apiVersion 1.1.1
* @apiName FindTorrents
* @apiGroup Torrents
*
* @apiParam {String[]} c In which categories to search.
*
* @api {post} /update/ Update a Torrent
* @apiVersion 1.1.1
* @apiName UpdateTorrent
* @apiGroup Torrents
*
* @apiParam {String} username Torrent uploader name.
*
* @api {post} /upload Upload a Torrent
* @apiVersion 1.1.1
* @apiName UploadTorrent
* @apiGroup Torrents
*
* @apiParam {String} username Torrent uploader name.
*
* @api {get} /view/:id Request Torrent information
* @apiVersion 1.1.1
* @apiName GetTorrent
* @apiGroup Torrents
*
* @apiParam {Number} id Torrent unique ID.
*
* @api {get} /head/:id Request Torrent Head
* @apiVersion 1.1.1
* @apiName GetTorrentHead
* @apiGroup Torrents
*
* @apiParam {Number} id Torrent unique ID.