aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 14:51:28 +0200
committerChocobozzz <me@florianbigard.com>2021-04-09 15:17:43 +0200
commit22820226e54dee61287666a178df2176fafb202a (patch)
tree3fce30315da83eda4b4f96064ad2703202d0d0f5 /server/tests/fixtures
parent023edc8a54a58d15f8d4f00d7f76e0074d0d3a81 (diff)
downloadPeerTube-22820226e54dee61287666a178df2176fafb202a.tar.gz
PeerTube-22820226e54dee61287666a178df2176fafb202a.tar.zst
PeerTube-22820226e54dee61287666a178df2176fafb202a.zip
Add server plugin helpers
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r--server/tests/fixtures/peertube-plugin-test-four/main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test-four/main.js b/server/tests/fixtures/peertube-plugin-test-four/main.js
index 8df456c8a..ea0599997 100644
--- a/server/tests/fixtures/peertube-plugin-test-four/main.js
+++ b/server/tests/fixtures/peertube-plugin-test-four/main.js
@@ -69,7 +69,20 @@ async function register ({
69 res.sendStatus(500) 69 res.sendStatus(500)
70 } 70 }
71 }) 71 })
72
73 router.get('/server-config', async (req, res) => {
74 const serverConfig = await peertubeHelpers.config.getServerConfig()
75
76 return res.json({ serverConfig })
77 })
78
79 router.get('/static-route', async (req, res) => {
80 const staticRoute = await peertubeHelpers.plugin.getBaseStaticRoute()
81
82 return res.json({ staticRoute })
83 })
72 } 84 }
85
73} 86}
74 87
75async function unregister () { 88async function unregister () {