aboutsummaryrefslogtreecommitdiffhomepage
path: root/packages/tests/fixtures/peertube-plugin-test-native/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tests/fixtures/peertube-plugin-test-native/main.js')
-rw-r--r--packages/tests/fixtures/peertube-plugin-test-native/main.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/tests/fixtures/peertube-plugin-test-native/main.js b/packages/tests/fixtures/peertube-plugin-test-native/main.js
new file mode 100644
index 000000000..0390faea9
--- /dev/null
+++ b/packages/tests/fixtures/peertube-plugin-test-native/main.js
@@ -0,0 +1,21 @@
1const print = require('a-native-example')
2
3async function register ({ getRouter }) {
4 print('hello world')
5
6 const router = getRouter()
7
8 router.get('/', (req, res) => {
9 print('hello world')
10 res.sendStatus(204)
11 })
12}
13
14async function unregister () {
15 return
16}
17
18module.exports = {
19 register,
20 unregister
21}