protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = array('POST', '/', 'addSharing');
     $routes[] = array('POST', '/{token}', 'removeSharing');
     return $routes;
 }
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = ['GET', '/', 'listFiles'];
     $routes[] = ['POST', '/remove', 'removeFile'];
     $routes[] = ['GET', '/direct', 'getDirectLink'];
     return $routes;
 }
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = array('GET', '/', 'listTorrents');
     $routes[] = array('GET', '/trackers/{hash}', 'listTrackers');
     $routes[] = array('POST', '/files', 'uploadTorrent');
     $routes[] = array('POST', '/', 'addTorrents');
     $routes[] = array('POST', '/pause/{hash}', 'pauseTorrent');
     $routes[] = array('POST', '/resume/{hash}', 'resumeTorrent');
     $routes[] = array('POST', '/remove/{hash}', 'removeTorrent');
     return $routes;
 }
Ejemplo n.º 4
0
 protected static function buildAjaxRoutes()
 {
     $routes = parent::buildAjaxRoutes();
     $routes[] = array('POST', '/remove', 'removeUser');
     return $routes;
 }