aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-native/main.js
blob: 0390faea931f8ac630486a1c80bdf9b9d4a431e0 (plain) (tree)




















                                         
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
}