* @author Olivier Haquette * @license GNU General Public License http://www.gnu.org/licenses/gpl.html * @link http://rudloff.pro * */ use Alltube\VideoDownload; require_once 'common.php'; $app = new \Slim\Slim( array( 'view' => new \Slim\Views\Smarty() ) ); $view = $app->view(); $view->parserExtensions = array( __DIR__.'/vendor/slim/views/SmartyPlugins', __DIR__.'/vendor/rudloff/smarty-plugin-noscheme/' ); $app->get( '/', array('Alltube\Controller\FrontController', 'index') ); $app->get( '/extractors', array('Alltube\Controller\FrontController', 'extractors') )->name('extractors'); $app->get( '/video', array('Alltube\Controller\FrontController', 'video') )->name('video'); $app->get( '/redirect', array('Alltube\Controller\FrontController', 'redirect') ); $app->get( '/json', array('Alltube\Controller\FrontController', 'json') ); $app->run();