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)

module.exports = router
