summaryrefslogtreecommitdiff
path: root/public/index.php
blob: d8b9517a7d1372df3aa30b421b5c1ec50611be12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

require_once __DIR__ . '/../app.php';

switch( $_SERVER['REQUEST_URI'] ) {

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');
}