feat: 🎉 Created index.js
parent
a758496711
commit
63d35924a8
|
@ -0,0 +1,20 @@
|
|||
'use strict'
|
||||
|
||||
// Config
|
||||
require('dotenv').config()
|
||||
const axios = require('axios')
|
||||
const express = require('express')
|
||||
const CORS_OPTIONS = {
|
||||
'origin': process.env.WWW_DOMAIN,
|
||||
'methods': 'GET,POST,PUT,OPTIONS,DELETE',
|
||||
}
|
||||
const jsonBodyParser = express.json()
|
||||
|
||||
// Server
|
||||
const app = express()
|
||||
const server = require('http').createServer(app)
|
||||
const io = require('socket.io')(server)
|
||||
server.listen(80)
|
||||
|
||||
// Healthcheck
|
||||
app.get('/', (req, res) => res.sendStatus(200) )
|
Loading…
Reference in New Issue