Skip to content

Commit

Permalink
Fixed not seeing users in asset
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairMRoss committed Oct 17, 2023
1 parent bc8f708 commit d731e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/infosafe_frontend/src/components/FilePopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {useGetFiles} from "./getData/getFiles";
selectedFile.title = "help";
formData.append("file", selectedFile);

fetch(`http://localhost:8080/api/storage/upload/${datascope.data_scope_id}`, {
fetch(`https://infosafe.live/api/storage/upload/${datascope.data_scope_id}`, {
method: "POST",
headers: {
Authorization: "Bearer " + sessionStorage.getItem('accessToken')
Expand Down Expand Up @@ -86,7 +86,7 @@ import {useGetFiles} from "./getData/getFiles";

// Determine the file name or identifier that you want to delete (you may need to pass it to the server).
const fileToDelete = selectedFile.value; // Adjust this based on your server's requirements
fetch(`http://localhost:8080/api/storage/delete/${fileToDelete}`, {
fetch(`https://infosafe.live/api/storage/delete/${fileToDelete}`, {
method: "DELETE",
headers: {
Authorization: "Bearer " + sessionStorage.getItem('accessToken')
Expand Down Expand Up @@ -116,7 +116,7 @@ import {useGetFiles} from "./getData/getFiles";
return;
}
const fileToDownload = selectedFile.value;
fetch(`http://localhost:8080/api/storage/download/${fileToDownload}`, {
fetch(`https://infosafe.live/api/storage/download/${fileToDownload}`, {
method: "GET",
headers: {
Authorization: "Bearer " + sessionStorage.getItem('accessToken')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const useGetFiles = () => {

const fetchData = async () => {
try {
const response = await fetch('http://localhost:8080/api/storage/list', {
const response = await fetch('https://infosafe.live/api/storage/list', {
method: "GET",
headers: {
Authorization: "Bearer " + sessionStorage.getItem('accessToken')
Expand Down

0 comments on commit d731e9a

Please sign in to comment.