1 2 3 4 5 6 7 8 9 10 11 12 13 14
const lib = require('./lib') async function register ({ getRouter }) { const router = getRouter() router.get('/get', (req, res) => res.json({ message: lib.value })) } async function unregister () { } module.exports = { register, unregister }