👽️ Update gateways

develop
Nato Boram 2022-05-13 11:26:59 -04:00
parent 14a72ac7af
commit 66b3a74d72
No known key found for this signature in database
GPG Key ID: 478E3C64BF88AFFA
2 changed files with 7 additions and 4 deletions

View File

@ -28,7 +28,7 @@ export class GatewayService {
url(gateway: string, protocol: Protocol, hashpath: string): string { url(gateway: string, protocol: Protocol, hashpath: string): string {
const splits: string[] = hashpath.split("/") const splits: string[] = hashpath.split("/")
const url: string = gateway.replace(":type", protocol).replace(":hash", splits.shift() ?? "") const url: string = gateway.replaceAll(":type", protocol).replaceAll(":hash", splits.shift() ?? "")
return splits.length ? [url, splits.join("/")].join("/") : url return splits.length ? [url, splits.join("/")].join("/") : url
} }
} }

View File

@ -28,8 +28,6 @@
"https://ipfs-cdn.aragon.ventures/:type/:hash", "https://ipfs-cdn.aragon.ventures/:type/:hash",
"https://permaweb.io/:type/:hash", "https://permaweb.io/:type/:hash",
"https://ipfs.best-practice.se/:type/:hash", "https://ipfs.best-practice.se/:type/:hash",
"https://2read.net/:type/:hash",
"https://ipfs.2read.net/:type/:hash",
"https://storjipfs-gateway.com/:type/:hash", "https://storjipfs-gateway.com/:type/:hash",
"https://ipfs.runfission.com/:type/:hash", "https://ipfs.runfission.com/:type/:hash",
"https://ipfs.trusti.id/:type/:hash", "https://ipfs.trusti.id/:type/:hash",
@ -89,5 +87,10 @@
"https://ipfs.tribecap.co/:type/:hash", "https://ipfs.tribecap.co/:type/:hash",
"https://ipfs.kinematiks.com/:type/:hash", "https://ipfs.kinematiks.com/:type/:hash",
"https://c4rex.co/:type/:hash", "https://c4rex.co/:type/:hash",
"https://ipfs.zod.tv/:type/:hash" "https://ipfs.zod.tv/:type/:hash",
"https://nftstorage.link/:type/:hash",
"https://gravity.jup.io/:type/:hash",
"http://fzdqwfb5ml56oadins5jpuhe6ki6bk33umri35p5kt2tue4fpws5efid.onion/:type/:hash",
"https://tth-ipfs.com/:type/:hash",
"https://:type.natoboram.com/:type/:hash"
] ]