Beispiel #1
0
});
$app->route('GET /css/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
$app->route('GET /bower_components/jquery/dist/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
$app->route('GET /bower_components/bootstrap/dist/js/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
$app->route('GET /bower_components/lazyloadxt/dist/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
$app->route('GET /bower_components/swipebox/src/js/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
$app->route('GET /js/@FileName', function ($FileName) {
    $FileName = htmlentities($FileName, "utf-8");
    echo @file_get_contents($FileName);
});
Flight::map('notFound', function () {
    // Handle not found
    echo "Not found";
});
$app->start();