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/getMap | |
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/getMap')
-rw-r--r-- | api/routes/getMap/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/routes/getMap/index.js b/api/routes/getMap/index.js index 791afb5..23b4e58 100644 --- a/api/routes/getMap/index.js +++ b/api/routes/getMap/index.js @@ -7,7 +7,8 @@ const fs = require('fs'); const config = require("../../config.js"); -module.exports = (req, res) => { +function getMap(req, res) +{ var args = req.url.split("/"); var hash = args[3]; regex= /[a-f0-9]{128}/ @@ -39,4 +40,4 @@ module.exports = (req, res) => { res.end(JSON.stringify({error:"No hash"})); } } - +module.exports = getMap; |