update endpoint
This commit is contained in:
parent
cae5d7b09c
commit
ce6f536791
|
@ -24,7 +24,7 @@ function MyDropzone() {
|
||||||
acceptedFiles => {
|
acceptedFiles => {
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
const file = R.head(acceptedFiles)
|
const file = R.head(acceptedFiles)
|
||||||
const url = API_ENDPOINT + "/linkfile/upload"
|
const url = API_ENDPOINT + "/linkfile"
|
||||||
const fd = new FormData()
|
const fd = new FormData()
|
||||||
fd.append("file", file)
|
fd.append("file", file)
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ export class Server {
|
||||||
// siafile
|
// siafile
|
||||||
this.app.post("/siafile", this.postSiaFile)
|
this.app.post("/siafile", this.postSiaFile)
|
||||||
// linkfile
|
// linkfile
|
||||||
this.app.post("/linkfile/upload", this.handleLinkUpload)
|
this.app.post("/linkfile", this.handleLinkUpload)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handleLinkUpload(
|
private async handleLinkUpload(
|
||||||
|
|
Reference in New Issue