Here is my routing page code. Im not really sure on what i have done wrong here. any one know?
// import
const express = require('express')
const req = require('express/lib/request')
const res = require('express/lib/response')
const app = express()
const port = 3000
//Static Files
app.use(express.static('assests'))
app.use('/css', express.static(__dirname + 'assets/css'))
app.use('/icons', express.static(__dirname + 'assets/icons'))
app.use('/img', express.static(__dirname + 'assets/img'))
app.use('/js', express.static(__dirname + 'assets/js'))
// Set Views
app.set('views', './views')
app.set('view engine', 'ejs')
app.get('',(req, res) => {
res.render('index')
})
// Listen on port 3000
app.listen(port, () => console.info(`Listing on port ${port}`))