PeerTube/server/tests/fixtures/peertube-plugin-test-native/main.js

22 lines
319 B
JavaScript
Raw Normal View History

const print = require('a-native-example')
async function register ({ getRouter }) {
print('hello world')
const router = getRouter()
router.get('/', (req, res) => {
print('hello world')
res.sendStatus(204)
})
}
async function unregister () {
return
}
module.exports = {
register,
unregister
}