From 2277165a80f79ff54fe8624fe4e56484996fb12b Mon Sep 17 00:00:00 2001 From: emad-salah Date: Sun, 1 Dec 2019 15:11:18 +0100 Subject: [PATCH] Server function returns now (Wizard fix) --- src/server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 1ebed0e0..0b409265 100644 --- a/src/server.js +++ b/src/server.js @@ -71,6 +71,8 @@ const server = program => { GET: { "/healthz": true, "/ping": true, + // Errors out when viewing an API page from the browser + "/favicon.ico": true, "/api/lnd/connect": true, "/api/lnd/wallet/status": true, "/api/lnd/auth": true @@ -87,7 +89,7 @@ const server = program => { const auth = require("../services/auth/auth"); app.use(async (req, res, next) => { - + console.log("Route:", req.path) if (unprotectedRoutes[req.method][req.path]) { next(); } else { @@ -249,6 +251,7 @@ const server = program => { }; startServer(); + return "Server started"; }; module.exports = server;