add sialink
This commit is contained in:
parent
91a67178bb
commit
411b9061a2
|
@ -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"
|
||||||
|
|
Reference in New Issue