mirror of
https://github.com/jimeh/php-rack.git
synced 2026-02-19 11:56:38 +00:00
initial commit
This commit is contained in:
16
public/rackup.php
Normal file
16
public/rackup.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user