12 lines
209 B
JavaScript
12 lines
209 B
JavaScript
import express from 'express'
|
|
import { sendEvent } from './bot'
|
|
|
|
const web = express()
|
|
|
|
web.use(express.json())
|
|
web.post('/', (req, res) => {
|
|
sendEvent(req.body)
|
|
res.send({ ok: true })
|
|
})
|
|
web.listen(3000)
|