Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-javascript
Commits
038f003d
Unverified
Commit
038f003d
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: correct syntax error in urls
parent
1fecff3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/adapter/index.js
src/adapter/index.js
+4
-4
No files found.
src/adapter/index.js
View file @
038f003d
...
...
@@ -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
,
},
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment