add sialink

This commit is contained in:
Eddie Wang 2019-12-20 17:34:55 -08:00
parent 91a67178bb
commit 411b9061a2
No known key found for this signature in database
GPG Key ID: 595553ADC5949F24
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export class Server {
this.app.post("/siafile", this.postSiaFile) this.app.post("/siafile", this.postSiaFile)
// linkfile // linkfile
this.app.get( this.app.get(
"/linkfile/:hash", "/sialink/:hash",
proxy("http://localhost:9980/renter/sialink", { proxy("http://localhost:9980/renter/sialink", {
proxyReqOptDecorator: (opts, _) => { proxyReqOptDecorator: (opts, _) => {
opts.headers["User-Agent"] = "Sia-Agent" opts.headers["User-Agent"] = "Sia-Agent"