From 82dddbb9a1c30fa3a18ddad929de3f61b9de7d85 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 19 Jul 2024 17:34:30 +0300 Subject: Version output at default route of API --- api/routes/default/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/routes/default/index.js') 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+"/"}, -- cgit v1.2.3