diff --git a/packages/siaviewnode-client/src/components/Dropzone.tsx b/packages/siaviewnode-client/src/components/Dropzone.tsx index bebf77ee..8b22da66 100644 --- a/packages/siaviewnode-client/src/components/Dropzone.tsx +++ b/packages/siaviewnode-client/src/components/Dropzone.tsx @@ -24,7 +24,7 @@ function MyDropzone() { acceptedFiles => { setLoading(true) const file = R.head(acceptedFiles) - const url = API_ENDPOINT + "/linkfile/upload" + const url = API_ENDPOINT + "/linkfile" const fd = new FormData() fd.append("file", file) diff --git a/packages/siaviewnode-server/src/main.ts b/packages/siaviewnode-server/src/main.ts index ed8c6a6f..8ab4c462 100644 --- a/packages/siaviewnode-server/src/main.ts +++ b/packages/siaviewnode-server/src/main.ts @@ -71,7 +71,7 @@ export class Server { // siafile this.app.post("/siafile", this.postSiaFile) // linkfile - this.app.post("/linkfile/upload", this.handleLinkUpload) + this.app.post("/linkfile", this.handleLinkUpload) } private async handleLinkUpload(