const express = require('express')

const requireInternalKey = require('./requireInternalKey')
const ctrl = require('./internal.controller')

const router = express.Router()

router.use(requireInternalKey)

router.post('/config', ctrl.setConfig)
router.get('/status', ctrl.getStatus)
router.post('/announce', ctrl.announce)
router.post('/mod-reverse', ctrl.reverseModAction)

module.exports = router
