From 57b9b6afe8f3e7d87b327b68861be2011e0d69ee Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 19 Jul 2018 02:55:04 -0400 Subject: Define /logout route --- app/index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/index.php b/app/index.php index 177cb1b..e883eff 100644 --- a/app/index.php +++ b/app/index.php @@ -49,6 +49,15 @@ function main(array $argv) : void return; } + switch ($argv[0]) + { + case "logout": + /* logout user */ + user::setCurrent(); + location("/"); + break; + } + /* TODO */ echo "logged in"; } -- cgit v1.2.3