1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-29 18:01:40 +00:00
now-playing/server.js
2019-12-04 03:22:32 +01:00

18 lines
510 B
JavaScript

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'))