mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
16 lines
306 B
PHP
16 lines
306 B
PHP
<?php
|
|
|
|
define("ROOT", dirname(dirname(__FILE__)));
|
|
|
|
require(ROOT."/lib/rack.php");
|
|
|
|
// add some middlewares
|
|
Rack::add("Format", ROOT."/app/format.php");
|
|
Rack::add("App", ROOT."/app/app.php");
|
|
|
|
// insert the Api middleware before App
|
|
Rack::insert_before("App", "Api", ROOT."/app/api.php");
|
|
|
|
Rack::run();
|
|
|
|
?>
|