Unverified Commit 038f003d authored by Dan Jones's avatar Dan Jones
Browse files

fix: correct syntax error in urls

parent 1fecff3c
...@@ -69,7 +69,7 @@ export class Adapter { ...@@ -69,7 +69,7 @@ export class Adapter {
*/ */
auth() { auth() {
return this.axios return this.axios
.get(`{this.config.api}/token`, { .get(`${this.config.api}/token`, {
params: { params: {
client_id: this.config.client_id, client_id: this.config.client_id,
secret: this.config.secret, secret: this.config.secret,
...@@ -90,7 +90,7 @@ export class Adapter { ...@@ -90,7 +90,7 @@ export class Adapter {
poll() { poll() {
return this.getAuthorizationHeader() return this.getAuthorizationHeader()
.then((headers) => { .then((headers) => {
return this.axios.get(`{this.config.api}/receive`, { return this.axios.get(`${this.config.api}/receive`, {
headers, headers,
}); });
}) })
...@@ -119,7 +119,7 @@ export class Adapter { ...@@ -119,7 +119,7 @@ export class Adapter {
return this.getAuthorizationHeader() return this.getAuthorizationHeader()
.then((headers) => { .then((headers) => {
return this.axios.post( return this.axios.post(
`{this.config.api}/send`, `${this.config.api}/send`,
{ {
topic, topic,
body, body,
...@@ -149,7 +149,7 @@ export class Adapter { ...@@ -149,7 +149,7 @@ export class Adapter {
return this.getAuthorizationHeader() return this.getAuthorizationHeader()
.then((headers) => { .then((headers) => {
return this.axios.post( return this.axios.post(
`{this.config.api}/notify`, `${this.config.api}/notify`,
{ {
body, body,
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment