сейчас есть код под один
let filePath = path.join(__dirname, 'public/modules/landing-page', req.url === '/' ? 'index.html' : req.url)
const ext = path.extname(filePath)
let contentType = 'text/html'
switch (ext) {
case '.css':
contentType = 'text/css'
break
case '.js':
contentType = 'text/javascript'
break
default:
contentType = 'text/html'
}
if (!ext) {
filePath += '.html'
}
fs.readFile(filePath, (err, content) => {
if (err) {
fs.readFile