blob: cbfba57b493dc3aa6de2d666ff33e54592d9351e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
require_once __DIR__ . '/../app.php';
$url = strtok($_SERVER["REQUEST_URI"], '?');
switch( $url ) {
case("/"):
echo $twig->render('index.html');
break;
case("/about"):
echo $twig->render('about.html');
break;
case("/projects"):
echo $twig->render('projects.html');
break;
case("/tools"):
echo $twig->render('tools.html');
break;
default:
http_response_code(404);
echo $twig->render('404.html');
}
|