Linting threw error stating that we use path module to join instead of +

This commit is contained in:
efarooqui
2020-10-19 09:02:03 -07:00
parent 1c600bc222
commit 29182f8ec2

View File

@@ -1,4 +1,5 @@
import http from 'http' import http from 'http'
import path from 'path'
import express from 'express' import express from 'express'
import initialize from './initialize' import initialize from './initialize'
import middleware from './middleware' 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, () => { app.server.listen(process.env.PORT || 4040, () => {
console.log('===========================================') console.log('===========================================')