mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-15 21:55:09 -05:00
Add front controller
This commit is contained in:
parent
7ef0c5565a
commit
f0a552012e
13
web/index.php
Normal file
13
web/index.php
Normal 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();
|
Loading…
Reference in New Issue
Block a user