diff --git a/server.js b/server.js index dcbfb35..c9cd93b 100644 --- a/server.js +++ b/server.js @@ -117,7 +117,7 @@ for (const route of routes) { for (const layer of router.stack) { if (layer.route && layer.route.methods) { const method = Object.keys(layer.route.methods).join(", ").toUpperCase() - const subPath = routePath === "/" ? "" : routePath + const subPath = routePath === "/" ? "" : routePath + layer.route.path logger.log(`${method.cyan} ${subPath.cyan.bold} route registered`, ["WEB", "yellow"]) } }