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