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/announceZBlock/index.js | |
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/announceZBlock/index.js')
-rw-r--r-- | api/routes/announceZBlock/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/routes/announceZBlock/index.js b/api/routes/announceZBlock/index.js index 254e1dc..dc1467a 100644 --- a/api/routes/announceZBlock/index.js +++ b/api/routes/announceZBlock/index.js @@ -13,7 +13,8 @@ * */ const getvalidity = require('../../validators/ZblockValidator') -module.exports = (req, res) => { +function announceZBlock(req, res) +{ console.log(req); if ( (req.body.zblock) && typeof req.body.zblock === "string" && req.body.zblock.length === 46 ){ let zblock = req.body.zblock; @@ -27,3 +28,4 @@ module.exports = (req, res) => { res.send({error:"Invalid data"}); } } +module.exports = announceZBlock; |