|
|
- <?php
-
- require __DIR__.'/../vendor/autoload.php';
- require __DIR__.'/../app/bootstrap.php';
-
- // add routes
- $app->route('GET /', array(new App\Controllers\PageController, 'indexAction'));
- $app->route('GET /@slug', array(new App\Controllers\PageController, 'getAction'));
- $app->route('GET /404', array(new App\Controllers\PageController, 'notFoundAction'));
-
- $app->start();
|