Init commit
This commit is contained in:
21
packages/tests/fixtures/peertube-plugin-test-native/main.js
vendored
Normal file
21
packages/tests/fixtures/peertube-plugin-test-native/main.js
vendored
Normal file
@@ -0,0 +1,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
|
||||
}
|
||||
Reference in New Issue
Block a user