. */ use Sikofitt\App\Controller\RsvpControllerProvider; use Sikofitt\App\Controller\UserController; use Sikofitt\App\Middleware\CspMiddleware; use Sikofitt\App\Middleware\HeaderMiddleware; $loader = require __DIR__.'/../vendor/autoload.php'; $app = new Kernel($loader, true); // Controllers // Default $app->mount('/rsvp', new RsvpControllerProvider()); $app->mount('/user', new UserController()); //->before(new MysqlAuthenticatorMiddleware()); // Middleware $app->before(new CspMiddleware(), \Kernel::EARLY_EVENT); $app->before(new HeaderMiddleware(), \Kernel::EARLY_EVENT); // Run the app $app->run();