Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
faircommons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
faircommons
Commits
9e522e68
Commit
9e522e68
authored
1 year ago
by
Johannes Buechele
Browse files
Options
Downloads
Patches
Plain Diff
fixed missing api url
parent
b75273ee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Frontend/src/services/ApiService.js
+6
-6
6 additions, 6 deletions
Frontend/src/services/ApiService.js
with
6 additions
and
6 deletions
Frontend/src/services/ApiService.js
+
6
−
6
View file @
9e522e68
...
...
@@ -92,7 +92,7 @@ const getLicenceList = async () => {
};
const
getCertificate
=
async
(
workId
)
=>
{
await
fetch
(
`
${
API_URL
}
/works/
${
workId
}
/certificate`
,
{
await
fetch
(
`
${
REACT_APP_API
}
/works/
${
workId
}
/certificate`
,
{
method
:
"
GET
"
,
headers
:
{
"
Access-Control-Allow-Origin
"
:
"
*
"
,
...
...
@@ -109,7 +109,7 @@ const getCertificate = async (workId) => {
};
const
getDownload
=
async
(
workId
,
filename
)
=>
{
await
fetch
(
`
${
API_URL
}
/works/
${
workId
}
/download`
,
{
await
fetch
(
`
${
REACT_APP_API
}
/works/
${
workId
}
/download`
,
{
method
:
"
GET
"
,
headers
:
{
"
Access-Control-Allow-Origin
"
:
"
*
"
,
...
...
@@ -126,7 +126,7 @@ const getDownload = async (workId, filename) => {
};
const
getPublicDownload
=
async
(
grid
)
=>
{
window
.
open
(
`
${
API_URL
}
/works/public/
${
grid
}
/download`
,
"
_blank
"
)
window
.
open
(
`
${
REACT_APP_API
}
/works/public/
${
grid
}
/download`
,
"
_blank
"
)
};
const
getPresignedAsset
=
async
(
...
...
@@ -138,7 +138,7 @@ const getPresignedAsset = async (
)
=>
{
var
keycloakUserId
=
UserService
.
getUserId
();
await
fetch
(
`
${
API_URL
}
/files/upload/presigned-url?filename=
${
filename
}
&userId=
${
keycloakUserId
}
`
,
`
${
REACT_APP_API
}
/files/upload/presigned-url?filename=
${
filename
}
&userId=
${
keycloakUserId
}
`
,
{
method
:
"
GET
"
,
headers
:
{
...
...
@@ -195,7 +195,7 @@ const putAsset = async (url, file, setLoading) => {
const
postAsset
=
async
(
raw
)
=>
{
console
.
log
(
JSON
.
stringify
(
raw
));
await
fetch
(
"
${
API_URL
}/works/register
"
,
{
await
fetch
(
"
${
REACT_APP_API
}/works/register
"
,
{
method
:
"
POST
"
,
headers
:
{
"
Content-Type
"
:
"
application/json
"
,
...
...
@@ -224,7 +224,7 @@ const getUserWorkList = async (
var
keycloakUserId
=
UserService
.
getUserId
();
await
fetch
(
`
${
API_URL
}
/users/
${
keycloakUserId
}
/works?page=
${
page
}
&size=
${
size
}
`
,
`
${
REACT_APP_API
}
/users/
${
keycloakUserId
}
/works?page=
${
page
}
&size=
${
size
}
`
,
{
method
:
"
GET
"
,
headers
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment