alltube/index.php
Pierre Rudloff 9ffd1d2769 Controllers
2015-10-29 22:32:36 +01:00

39 lines
960 B
PHP

<?php
/**
* PHP web interface for youtube-dl (http://rg3.github.com/youtube-dl/)
* Index page
*
* PHP Version 5.3.10
*
* @category Youtube-dl
* @package Youtubedl
* @author Pierre Rudloff <contact@rudloff.pro>
* @author Olivier Haquette <contact@olivierhaquette.fr>
* @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(
dirname(__FILE__).'/vendor/slim/views/SmartyPlugins',
);
$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->run();