flarum/public/index.php

27 lines
860 B
PHP
Raw Normal View History

<?php
2020-01-17 15:43:50 +00:00
2015-08-26 07:43:18 +00:00
/*
* This file is part of Flarum.
*
2020-01-05 21:31:04 +00:00
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
2015-08-26 07:43:18 +00:00
*/
$site = require '../site.php';
/*
|-------------------------------------------------------------------------------
| Accept incoming HTTP requests
|-------------------------------------------------------------------------------
|
| Every HTTP request pointed to the web server that cannot be served by simply
| responding with one of the files in the "public" directory will be sent to
| this file. Now is the time to boot up Flarum's internal HTTP server, which
| will try its best to interpret the request and return the appropriate
| response, which could be a JSON document (for API responses) or a lot of HTML.
|
*/
$server = new Flarum\Http\Server($site);
$server->listen();