1
0
Fork 0
peertube/server/tests/fixtures/peertube-plugin-test-five/main.js
2020-04-10 15:23:25 +02:00

21 lines
392 B
JavaScript

async function register ({
getRouter
}) {
const router = getRouter()
router.get('/ping', (req, res) => res.json({ message: 'pong' }))
router.post('/form/post/mirror', (req, res) => {
res.json(req.body)
})
}
async function unregister () {
return
}
module.exports = {
register,
unregister
}
// ###########################################################################