@vtex/api
Advanced tools
Comparing version 0.22.0 to 0.23.0
@@ -22,2 +22,4 @@ 'use strict'; | ||
Workspace: (account, workspace) => `/${ account }/${ workspace }`, | ||
InstalledServices: (account, workspace) => `/${ account }/${ workspace }/services`, | ||
@@ -33,6 +35,10 @@ | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { | ||
baseURL: (0, _baseClient.createRootURL)('kube-router', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
baseURL: (0, _baseClient.createRootURL)('router', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
})); | ||
return { | ||
getWorkspace: () => { | ||
return client.get(routes.Workspace(account, workspace)); | ||
}, | ||
listAvailableIoVersions: () => { | ||
@@ -39,0 +45,0 @@ return client.get(routes.AvailableIoVersions); |
{ | ||
"name": "@vtex/api", | ||
"version": "0.22.0", | ||
"version": "0.23.0", | ||
"description": "VTEX I/O API client", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1060
199715
32