nftstorage / nftstorage.link

🪐 NFT.Storage Gateway, the IPFS gateway for NFT.Storage is not "another gateway", but a caching layer for NFTs that sits on top of existing IPFS public gateways. ***Notice: Uploads have been decommissioned.**** Learn more and find a new hot storage provider for uploading new assets: nft.storage/nft-storage-classic
https://nft.storage/nft-storage-classic
Other
46 stars 10 forks source link

feat: client perma cache #127

Closed vasco-santos closed 2 years ago

vasco-santos commented 2 years ago

This PR adds perma-cache client to client package. There are potential improvements on the pipeline (like converting given URLs to nftstorage.link if they are IPFS urls), but keeping scope smaller for initial implementation.

It includes:

Closes #92

BREAKING CHANGE: GET /perma-cache/status renamed to /perma-cache/account

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 57aaece
Status: ✅  Deploy successful!
Preview URL: https://5536a151.nftstorage-link.pages.dev
Branch Preview URL: https://feat-client-perma-cache.nftstorage-link.pages.dev

View logs

vasco-santos commented 2 years ago

@alanshaw renamed API route as you suggest, we are still in private beta. Thinking if we should keep /perma-cache/status for now as deprecated, or just get it out right away. What do you think?

alanshaw commented 2 years ago

@alanshaw renamed API route as you suggest, we are still in private beta. Thinking if we should keep /perma-cache/status for now as deprecated, or just get it out right away. What do you think?

It's the same response right? I'd maybe just stick a redirect in for now...