From 1730e54d3423a8d0ab3a2bd9791575b59ab399cc Mon Sep 17 00:00:00 2001 From: horus Date: Fri, 12 Mar 2021 23:33:11 +0100 Subject: Add faces as submodule --- public/index.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php index cbfba57..fa89920 100644 --- a/public/index.php +++ b/public/index.php @@ -4,6 +4,8 @@ require_once __DIR__ . '/../app.php'; $url = strtok($_SERVER["REQUEST_URI"], '?'); +#var_dump([ "faces" => get_faces() ]); + switch( $url ) { case("/"): @@ -18,6 +20,10 @@ case("/projects"): case("/tools"): echo $twig->render('tools.html'); break; +case("/tools/faces"): +case("/tools/faces/"): + echo $twig->render('tools/faces/index.html', [ "faces" => get_faces() ]); + break; default: http_response_code(404); echo $twig->render('404.html'); -- cgit v1.2.3