From 333864c5fe098b6993066d73b8d6d8e6fb358eb0 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 14 Apr 2025 16:54:13 +0300 Subject: [api] Removes unnecessary anonymous JS functions --- api/routes/announceZChain/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/routes/announceZChain/index.js') diff --git a/api/routes/announceZChain/index.js b/api/routes/announceZChain/index.js index 0261aa4..ca23a72 100644 --- a/api/routes/announceZChain/index.js +++ b/api/routes/announceZChain/index.js @@ -14,7 +14,8 @@ */ const getNSvalidity = require('../../validators/ZchainValidator'); -module.exports = (req, res) => { +function announceZChain(req, res) +{ console.log(req); if ( (req.body.zchain) && typeof req.body.zchain === "string" && req.body.zchain.length === 62 ){ let zchain = req.body.zchain; @@ -30,3 +31,4 @@ module.exports = (req, res) => { res.end(JSON.stringify({error:"Invalid data"})); } } +module.exports = announceZChain; -- cgit v1.2.3