diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-14 16:54:13 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-14 16:54:13 +0300 |
commit | 333864c5fe098b6993066d73b8d6d8e6fb358eb0 (patch) | |
tree | 039442bc2fb7f1e535087639db34ca3afa30d455 /api/routes/default | |
parent | b9c719d094c3ac8a802b59d7667a97514d03faed (diff) | |
download | arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.tar.gz arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.tar.bz2 arching-kaos-tools-333864c5fe098b6993066d73b8d6d8e6fb358eb0.zip |
[api] Removes unnecessary anonymous JS functions
Diffstat (limited to 'api/routes/default')
-rw-r--r-- | api/routes/default/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/routes/default/index.js b/api/routes/default/index.js index 24e334b..db1495f 100644 --- a/api/routes/default/index.js +++ b/api/routes/default/index.js @@ -1,7 +1,8 @@ const rsettings = require('../../settings'); const settings = rsettings(); -module.exports = (req, res) => { +function welcome(req, res) +{ res.writeHead(404, { 'Content-Type': 'application/json'}); res.end(JSON.stringify({ message:"Hello! Welcome to Arching Kaos API! See available routes below!", @@ -36,4 +37,4 @@ module.exports = (req, res) => { } })); } - +module.exports = welcome; |