pluginservice/credits/index.js
2020-04-14 14:29:13 +02:00

20 lines
449 B
JavaScript

const express = require('express')
const router = express.Router()
// The following endpoints are supported.
//
// /update - json fields: userid, column, and mods
router.post('/update', (req, res) => {
console.log('in update, body:', req.body)
let respbuf = ''
res.send(respbuf)
})
router.use((req, res, next) => {
console.log('nothing to do for %s %s', req.method, req.url)
res.status(404).end()
})
module.exports = router