diff options
author | John Livingston <38844060+JohnXLivingston@users.noreply.github.com> | 2021-06-03 12:28:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 12:28:26 +0200 |
commit | 9777fe9eebe53debdf45091cab98f72a5987e05a (patch) | |
tree | 0f85ae9dc3ef89e0ca111d21e4a48d942ff3f991 /client/src/app | |
parent | 63da15eb18065ef6c419f073c95fec6ef5541652 (diff) | |
download | PeerTube-9777fe9eebe53debdf45091cab98f72a5987e05a.tar.gz PeerTube-9777fe9eebe53debdf45091cab98f72a5987e05a.tar.zst PeerTube-9777fe9eebe53debdf45091cab98f72a5987e05a.zip |
Adding frontend peertubeHelpers.getBaseRouterRoute. (#4153)
* Adding frontend peertubeHelpers.getBaseRouterRoute.
* Fix doctoc.
Diffstat (limited to 'client/src/app')
-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 6a1a46e73..a3de98390 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -250,6 +250,11 @@ export class PluginService implements ClientHook { | |||
250 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/static` | 250 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/static` |
251 | }, | 251 | }, |
252 | 252 | ||
253 | getBaseRouterRoute: () => { | ||
254 | const pathPrefix = this.getPluginPathPrefix(pluginInfo.isTheme) | ||
255 | return environment.apiUrl + `${pathPrefix}/${plugin.name}/${plugin.version}/router` | ||
256 | }, | ||
257 | |||
253 | getSettings: () => { | 258 | getSettings: () => { |
254 | const path = PluginService.BASE_PLUGIN_API_URL + '/' + npmName + '/public-settings' | 259 | const path = PluginService.BASE_PLUGIN_API_URL + '/' + npmName + '/public-settings' |
255 | 260 | ||