I got the express server running but when ever i try to load static files it shows an error "Cannot GET /URL" the files are inside a folder called "Login" the app.js and "Login" are in the same directory
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})
app.use(express.static("Login"))
"EDIT"
I found the solution by adding __dirname and a forwward slash to indicate the login folder
app.use(express.static(__dirname + '/Login'));