Skip to content

Commit

Permalink
dynamic upload servers
Browse files Browse the repository at this point in the history
  • Loading branch information
barduinor committed Jul 2, 2024
1 parent 81d14d0 commit 70de3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,15 @@ class Collection {
url (path, endpoint) {
const server = this.server(endpoint)

const strippedHost = server.host.replace(/\{|\}/g, '');
const strippedHost = server.host.replace(/\{|\}/g, '')

return {
protocol: 'https',
host: `{{${strippedHost}}}`,
path: this.path(server, path),
query: this.query(endpoint),
variable: this.variable(endpoint)
};
}

// return {
// protocol: 'https',
Expand Down

0 comments on commit 70de3e7

Please sign in to comment.