From 29182f8ec2e551fc7ca25fe321f236c3c4e6b7be Mon Sep 17 00:00:00 2001 From: efarooqui Date: Mon, 19 Oct 2020 09:02:03 -0700 Subject: [PATCH] Linting threw error stating that we use path module to join instead of + --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index ab969e9..1c2ac09 100755 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ import http from 'http' +import path from 'path' import express from 'express' import initialize from './initialize' import middleware from './middleware' @@ -40,7 +41,7 @@ initialize(controller => { }) ) - app.use(express.static(__dirname + '/public')) + app.use(express.static(path.join(__dirname, 'public'))) app.server.listen(process.env.PORT || 4040, () => { console.log('===========================================')