Как запустить сервер express на всю папку сайта?

//serverForm
const express = 
require('express')

const app = express()
const PORT = 3001

app.get('/site', (req,res) =>   
{ 
   Vres.sendFile(__dirname + 
'/active.html')
})

app.listen(PORT, () => 
console.log(`server was start 
http://localhost:${PORT}/site`))

Возникла проблема, как запустить сервер на всю папку с файлами html, а не только на один html файл?


Ответы (0 шт):