Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
owojcikiewicz committed Mar 10, 2024
1 parent 308e7d8 commit 22dd594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27086,11 +27086,11 @@ exports.Portainer = void 0;
const axios_1 = __nccwpck_require__(8757);
class Portainer {
constructor(baseUrl, username, password) {
this.baseUrl = baseUrl;
this.baseUrl = `${baseUrl}/api`;
this.username = username;
this.password = password;
this.axios = axios_1.default.create({
baseURL: baseUrl,
baseURL: this.baseUrl,
headers: {
'Content-Type': 'application/json',
},
Expand Down Expand Up @@ -27127,7 +27127,7 @@ class Portainer {
Authorization: `Bearer ${this.token}`,
},
params: {
endpointId,
filters: endpointId ? JSON.stringify({ endpointId }) : undefined,
},
});
return data;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

0 comments on commit 22dd594

Please sign in to comment.