You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const ParcelBundler = require('parcel-bundler')const express = require('express')const app = express()const index = 'index.html'const port = 8000const bundler = new ParcelBundler(index, {watch: true})app.use(express.urlencoded({ extended: true }))/** * Contact form data validation and persistence must be made in this route! */app.post('/contact', (req, res) => { return res.status(200).send(`Contact form data: ${JSON.stringify(req.body)}`)})app.use(bundler.middleware())app.listen(port, () => console.log(`Server running at http://localhost:${port}/`))