aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures/peertube-plugin-test-native/main.js
blob: 0390faea931f8ac630486a1c80bdf9b9d4a431e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}