Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FIT-Connect
sender-app
Commits
be36c07d
Commit
be36c07d
authored
Jul 17, 2020
by
Peter Kuhn
Browse files
fix bug in url for getStatus
parent
67e2a70c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/requests.js
View file @
be36c07d
...
...
@@ -89,12 +89,12 @@ export const sendApplication = async (
export
const
getStatus
=
async
(
applicationId
,
destinationId
,
accessToken
)
=>
{
try
{
const
response
=
await
axios
.
get
(
"
https://sender.fiep-poc.de/beta5/
"
+
config
.
senderId
+
"
/
"
+
destinationId
+
"
/
"
+
applicationId
+
"
/status
"
,
"
https://sender.fiep-poc.de/beta5/
"
+
config
.
senderId
+
"
/
"
+
destinationId
+
"
/
"
+
applicationId
+
"
/
upload-
status
"
,
{
headers
:
{
Authorization
:
"
Bearer
"
+
accessToken
},
}
);
return
response
.
current
.
code
;
return
response
.
data
.
data
.
status
;
}
catch
(
error
)
{
console
.
log
(
error
);
return
"
error
"
;
...
...
Write
Preview
Supports
Markdown
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