diff options
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r-- | src/client/Network.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/Network.ts b/src/client/Network.ts index 70b51d036..39bf69e32 100644 --- a/src/client/Network.ts +++ b/src/client/Network.ts @@ -38,6 +38,7 @@ export namespace Networking { * with the mapping of guid to files as parameters. * * @param fileguidpairs the files and corresponding guids to be uploaded to the server + * @param browndash whether the endpoint should be invoked on the browndash server * @returns the response as a json from the server */ export async function UploadFilesToServer<T extends Upload.FileInformation = Upload.FileInformation>(fileguidpairs: FileGuidPair | FileGuidPair[], browndash?: boolean): Promise<Upload.FileResponse<T>[]> { @@ -68,7 +69,7 @@ export namespace Networking { body: formData, }; - const endpoint = browndash ? 'http://10.38.71.246:1050/uploadFormData' : '/uploadFormData'; + const endpoint = browndash ? '[insert endpoint allowing local => browndash]' : '/uploadFormData'; const response = await fetch(endpoint, parameters); return response.json(); } |