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();