mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-09 20:08:32 +03:00
Linting threw error stating that we use path module to join instead of +
This commit is contained in:
@@ -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('===========================================')
|
||||
|
||||
Reference in New Issue
Block a user