Skip to content
Snippets Groups Projects
Commit 9e522e68 authored by Johannes Buechele's avatar Johannes Buechele
Browse files

fixed missing api url

parent b75273ee
No related branches found
No related tags found
No related merge requests found
......@@ -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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment