server/src/server.php
author ymh <ymh.work@gmail.com>
Tue, 07 Jun 2016 01:16:31 +0200
changeset 173 cf7b221238fd
parent 27 a2342f26c9de
permissions -rw-r--r--
Work on test fixtures: - get rid both on bo and front of 2 fixtures files for documents - correct dl_fixtures to reflect this - upgrade mirage from 0.1.13 to 0.2.0 - download new version of documents fixtures including geo information

<?php
/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylorotwell@gmail.com>
 */

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}

require_once __DIR__.'/public/index.php';