aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-19 17:34:30 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-19 17:34:30 +0300
commit82dddbb9a1c30fa3a18ddad929de3f61b9de7d85 (patch)
treee9bb4d404fabc8338581308d5c48fbcb8854accd /api
parent3cafdfccc39c0493ac95ae88cf7d0dd1dd58d28b (diff)
downloadarching-kaos-tools-82dddbb9a1c30fa3a18ddad929de3f61b9de7d85.tar.gz
arching-kaos-tools-82dddbb9a1c30fa3a18ddad929de3f61b9de7d85.tar.bz2
arching-kaos-tools-82dddbb9a1c30fa3a18ddad929de3f61b9de7d85.zip
Version output at default route of API
Diffstat (limited to 'api')
-rw-r--r--api/routes/default/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/routes/default/index.js b/api/routes/default/index.js
index f207b89..9de5cfb 100644
--- a/api/routes/default/index.js
+++ b/api/routes/default/index.js
@@ -5,6 +5,8 @@ module.exports = (req, res) => {
res.writeHead(404, { 'Content-Type': 'application/json'});
res.end(JSON.stringify({
message:"Hello! Welcome to Arching Kaos API! See available routes below!",
+ version:"0.0.0",
+
routes:{
GET:[
{welcome:settings.DEF_PROTO+"["+settings.LOCAL_IP+"]:"+settings.PORT+"/"},