diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-11 11:07:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-11 11:11:04 +0200 |
commit | 9d4c60dccc8e7e777ad139a82e9f61feda9d21fc (patch) | |
tree | 2931338f340b398d36c43575fea95cf1fbbfeb4c /client/src/app/core/plugins/plugin.service.ts | |
parent | 9866921cbf3f8f0925f7ffb3a231d5dfe2d30953 (diff) | |
download | PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.tar.gz PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.tar.zst PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.zip |
Add ability for plugins to register ws routes
Diffstat (limited to 'client/src/app/core/plugins/plugin.service.ts')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index dadc2a41d..1e79cbf79 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -202,6 +202,11 @@ export class PluginService implements ClientHook { | |||
202 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/router` | 202 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/router` |
203 | }, | 203 | }, |
204 | 204 | ||
205 | getBaseWebSocketRoute: () => { | ||
206 | const pathPrefix = PluginsManager.getPluginPathPrefix(pluginInfo.isTheme) | ||
207 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/ws` | ||
208 | }, | ||
209 | |||
205 | getBasePluginClientPath: () => { | 210 | getBasePluginClientPath: () => { |
206 | return '/p' | 211 | return '/p' |
207 | }, | 212 | }, |