1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-19 19:42:47 +00:00
now-playing/server.js

19 lines
510 B
JavaScript
Raw Normal View History

2019-12-03 23:41:09 +00:00
const express = require('express')
const cors = require('cors')
const netlifyCmsBackendFsMiddleware = require('netlify-cms-backend-fs/dist/fs')
const app = express()
const corsMiddleware = cors()
// app.use(cors({ credentials: true, origin: true }))
app.options('*', corsMiddleware)
app.use(corsMiddleware)
netlifyCmsBackendFsMiddleware(app)
app.use(express.static('public'))
// const bundler = new parcel('src/index.html')
// app.use(bundler.middleware());
app.listen(4242, () => console.log('Running'))