bitgoblin-website/app/routes.php

21 lines
663 B
PHP
Raw Permalink Normal View History

2022-07-09 13:14:08 -04:00
<?php
use Slim\Psr7\Request;
use Slim\Psr7\Response;
use Slim\Views\Twig;
$app->get('/', function (Request $request, Response $response, array $args) {
$view = Twig::fromRequest($request);
return $view->render($response, 'index.twig');
2022-07-09 13:20:07 -04:00
})->setName('home');
$app->get('/contact', function (Request $request, Response $response, array $args) {
$view = Twig::fromRequest($request);
return $view->render($response, 'contact.twig');
})->setName('contact');
$app->get('/support', function (Request $request, Response $response, array $args) {
$view = Twig::fromRequest($request);
return $view->render($response, 'support.twig');
})->setName('support');