summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-07-19 02:55:04 -0400
committerMalf Furious <m@lfurio.us>2018-07-19 02:55:04 -0400
commit57b9b6afe8f3e7d87b327b68861be2011e0d69ee (patch)
tree1335351c857471627b35422d69df2c358289efe6 /app/index.php
parent36a565c0713a68c758768190d3d336873611775b (diff)
downloadscrott-57b9b6afe8f3e7d87b327b68861be2011e0d69ee.tar.gz
scrott-57b9b6afe8f3e7d87b327b68861be2011e0d69ee.zip
Define /logout route
Diffstat (limited to '')
-rw-r--r--app/index.php9
1 files changed, 9 insertions, 0 deletions
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";
}