diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-04 11:52:45 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-04 11:52:54 +0100 |
commit | 60bab7b540de3709f3392a0ea964524c13c7e404 (patch) | |
tree | 9a3966982af2cf8c1966a2e83db0a3da4a66f1f7 /server/tests/fixtures/peertube-plugin-test-four | |
parent | 518c5cc62d922ddedc16f5a1e2c3e7035f342115 (diff) | |
download | PeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.tar.gz PeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.tar.zst PeerTube-60bab7b540de3709f3392a0ea964524c13c7e404.zip |
Implement getServerListeningConfig plugin helper
Diffstat (limited to 'server/tests/fixtures/peertube-plugin-test-four')
-rw-r--r-- | server/tests/fixtures/peertube-plugin-test-four/main.js | 6 |
1 files changed, 6 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 3e848c49e..b10177b45 100644 --- a/server/tests/fixtures/peertube-plugin-test-four/main.js +++ b/server/tests/fixtures/peertube-plugin-test-four/main.js | |||
@@ -76,6 +76,12 @@ async function register ({ | |||
76 | return res.json({ serverConfig }) | 76 | return res.json({ serverConfig }) |
77 | }) | 77 | }) |
78 | 78 | ||
79 | router.get('/server-listening-config', async (req, res) => { | ||
80 | const config = await peertubeHelpers.config.getServerListeningConfig() | ||
81 | |||
82 | return res.json({ config }) | ||
83 | }) | ||
84 | |||
79 | router.get('/static-route', async (req, res) => { | 85 | router.get('/static-route', async (req, res) => { |
80 | const staticRoute = peertubeHelpers.plugin.getBaseStaticRoute() | 86 | const staticRoute = peertubeHelpers.plugin.getBaseStaticRoute() |
81 | 87 | ||