currently I am using html file inside same folder.So how can I get a html file saved in different folder using express. Thank you.
const express=require('express')
const path=require('path')
const app=express()
app.get('/',function(req,res){
res.sendFile(path.join(__dirname,'index.html'))
})
app.get('/about',function(req,res){
res.send('about')
})
app.listen(3000,function(){
console.log('Server Online')
})