aboutsummaryrefslogtreecommitdiff
path: root/src/client/Network.ts
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2023-07-19 19:11:06 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2023-07-19 19:11:06 -0400
commitea217200f1c42e4d4b142abc9abd55ca49535c49 (patch)
tree3f8974dfdc0f63ea0549d7681b74c5b08bcfc1d3 /src/client/Network.ts
parent77b26f2dbdc2f3df0ab65aa3053854b4a24c586f (diff)
lots of changes, just need server endpoint before pull
Diffstat (limited to 'src/client/Network.ts')
-rw-r--r--src/client/Network.ts3
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();
}