2020-04-10 09:07:54 -04:00
|
|
|
async function register ({
|
|
|
|
getRouter
|
|
|
|
}) {
|
|
|
|
const router = getRouter()
|
|
|
|
router.get('/ping', (req, res) => res.json({ message: 'pong' }))
|
|
|
|
|
2020-12-04 14:56:48 -05:00
|
|
|
router.get('/is-authenticated', (req, res) => res.json({ isAuthenticated: res.locals.authenticated }))
|
|
|
|
|
2020-04-10 09:07:54 -04:00
|
|
|
router.post('/form/post/mirror', (req, res) => {
|
|
|
|
res.json(req.body)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
async function unregister () {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
register,
|
|
|
|
unregister
|
|
|
|
}
|
|
|
|
|
|
|
|
// ###########################################################################
|