update endpoint
This commit is contained in:
parent
cae5d7b09c
commit
ce6f536791
|
@ -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)
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Reference in New Issue