Parcourir la source

Add getWorkspacesUrl().

Afshin Darian il y a 7 ans
Parent
commit
f92a53b5ca
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      packages/coreutils/src/pageconfig.ts

+ 8 - 0
packages/coreutils/src/pageconfig.ts

@@ -128,6 +128,14 @@ namespace PageConfig {
     return URLExt.join(getBaseUrl(), getOption('pageUrl'), 'tree');
   }
 
+  /**
+   * Get the workspaces url for a JupyterLab application.
+   */
+  export
+  function getWorkspacesUrl(): string {
+    return URLExt.join(getBaseUrl(), getOption('pageUrl'), 'workspaces');
+  }
+
   /**
    * Get the base websocket url for a Jupyter application.
    */