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 {
*/
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,
},
......
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