From aa6f107ce45aa230a22cbf077850e089403174ec Mon Sep 17 00:00:00 2001 From: bye Date: Fri, 28 Jun 2024 22:50:21 +0100 Subject: [PATCH] I'll style this later --- index.php | 7 +++++++ views/signup.php | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index d59f964..a665ee1 100644 --- a/index.php +++ b/index.php @@ -48,6 +48,13 @@ if (str_ends_with($path_raw, '/') && $path_raw != '/') { $routes = [ '' => function () { require 'views/home.php'; }, 'api' => function () { require 'api.php'; /* Handoff further routing to API script. */ }, + 'auth' => function () { + global $path; + + if ($path[2] == 'signup') { + require 'views/signup.php'; + } + }, 'profile' => function () { global $path, $user, $profile_owner; // don't forget this lol diff --git a/views/signup.php b/views/signup.php index b3d9bbc..7183bb5 100644 --- a/views/signup.php +++ b/views/signup.php @@ -1 +1,34 @@ - + + + + + + + +
+

Sign up

+
+

+

+

+

+

+

+ + +
+
+ + + + \ No newline at end of file