From 038f003d41498b5f74ca53644c886d1791eb6add Mon Sep 17 00:00:00 2001 From: Dan Jones <dan.jones@noc.ac.uk> Date: Thu, 12 Jan 2023 10:28:16 +0000 Subject: [PATCH] fix: correct syntax error in urls --- src/adapter/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adapter/index.js b/src/adapter/index.js index 6b449f3..9c1a21a 100644 --- a/src/adapter/index.js +++ b/src/adapter/index.js @@ -69,7 +69,7 @@ export class Adapter { */ auth() { return this.axios - .get(`{this.config.api}/token`, { + .get(`${this.config.api}/token`, { params: { client_id: this.config.client_id, secret: this.config.secret, @@ -90,7 +90,7 @@ export class Adapter { poll() { return this.getAuthorizationHeader() .then((headers) => { - return this.axios.get(`{this.config.api}/receive`, { + return this.axios.get(`${this.config.api}/receive`, { headers, }); }) @@ -119,7 +119,7 @@ export class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/send`, + `${this.config.api}/send`, { topic, body, @@ -149,7 +149,7 @@ export class Adapter { return this.getAuthorizationHeader() .then((headers) => { return this.axios.post( - `{this.config.api}/notify`, + `${this.config.api}/notify`, { body, }, -- GitLab