From f1e5f3d04a0c18655ee6ceaa0f47113e39886513 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 30 May 2020 16:26:57 -0400 Subject: [PATCH] move import to top --- src/routes.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index cba84101..cda2e7e3 100644 --- a/src/routes.js +++ b/src/routes.js @@ -33,6 +33,8 @@ module.exports = async ( mySocketsEvents, { serverPort, CA, CA_KEY, usetls } ) => { + const {timeout5} = require('../services/gunDB/contact-api/utils') + const Http = Axios.create({ httpsAgent: new httpsAgent.Agent({ ca: await FS.readFile(CA) @@ -1675,7 +1677,6 @@ module.exports = async ( res.json(channelBackups); }); }); - const {timeout5} = require('../services/gunDB/contact-api/utils') const GunEvent = Common.Constants.Event const Key = require('../services/gunDB/contact-api/key') @@ -1707,7 +1708,7 @@ module.exports = async ( }) const Events = require('../services/gunDB/contact-api/events') - + app.get(`/api/gun/${GunEvent.ON_RECEIVED_REQUESTS}`, (_, res) => { try { // spinup