summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorhorus2021-02-24 15:09:40 +0100
committerhorus2021-02-24 15:09:40 +0100
commite4149f7c536199575a1e6b2b8b54eec1c3c1160c (patch)
tree6d2bb6cb165d0f2cbcfc306378e6141d77cef80c /public/index.php
downloadmoehring-e4149f7c536199575a1e6b2b8b54eec1c3c1160c.tar.gz
initial commit
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
new file mode 100644
index 0000000..d8b9517
--- /dev/null
+++ b/public/index.php
@@ -0,0 +1,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');
+}