1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-15 13:45:04 -05:00

Add front controller

This commit is contained in:
Vincent Jousse 2013-11-21 09:54:33 +01:00
parent 7ef0c5565a
commit f0a552012e

13
web/index.php Normal file
View File

@ -0,0 +1,13 @@
<?php
$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
if (php_sapi_name() === 'cli-server' && is_file($filename)) {
return false;
}
require_once __DIR__.'/../vendor/autoload.php';
$app = new Silex\Application();
$app->run();