]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/plugins/plugin.service.ts
Add auth user client hook actions
[github/Chocobozzz/PeerTube.git] / client / src / app / core / plugins / plugin.service.ts
index b755fda2c6e3344c963c860987804985cbcaab6a..54dba5e178b5ee8095bb57ec58cd74a65335f0fc 100644 (file)
@@ -235,6 +235,12 @@ export class PluginService implements ClientHook {
                    .toPromise()
       },
 
+      getServerConfig: () => {
+        return this.server.getConfig()
+          .pipe(catchError(res => this.restExtractor.handleError(res)))
+          .toPromise()
+      },
+
       isLoggedIn: () => {
         return this.authService.isLoggedIn()
       },