Boilerplate to use a Directus Instance to Build a Custom Website, Content will be Manage by Directus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
319 B

3 years ago
  1. <?php
  2. require __DIR__.'/../vendor/autoload.php';
  3. require __DIR__.'/../app/bootstrap.php';
  4. // default routes
  5. $flight->route('GET /404', array(new App\Controllers\PageController, 'notFoundAction'));
  6. $flight->route('GET /(@slug:[a-z0-9\-]+$)', array(new App\Controllers\PageController, 'getAction'));
  7. $flight->start();