index.php 326 B

1234567891011121314151617
  1. <?php
  2. require 'vendor/autoload.php';
  3. Flight::route('/', function(){
  4. echo 'hello world!';
  5. });
  6. // Needs this in nginx sites-enabled config (in my environment)
  7. // location /link/ {
  8. // try_files $uri $uri/ /link/index.php;
  9. // }
  10. Flight::route('/test', function(){
  11. echo 'routed page test';
  12. });
  13. Flight::start();
  14. ?>