update endpoint

This commit is contained in:
Eddie Wang 2019-12-20 11:59:47 -08:00
parent cae5d7b09c
commit ce6f536791
No known key found for this signature in database
GPG Key ID: 595553ADC5949F24
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View 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(