1234567891011121314151617 |
- <?php
- require 'vendor/autoload.php';
- Flight::route('/', function(){
- echo 'hello world!';
- });
- // Needs this in nginx sites-enabled config (in my environment)
- // location /link/ {
- // try_files $uri $uri/ /link/index.php;
- // }
- Flight::route('/test', function(){
- echo 'routed page test';
- });
- Flight::start();
- ?>
|