No description
Find a file
Max Wofford de82e5b371
Merge pull request #3 from hackclub/attempt-to-work-with-slack
Attempt to add authorization pass through
2021-10-08 18:36:13 -04:00
api Attempt to add authorization pass through 2021-10-08 03:05:36 -04:00
.gitignore Remove rogue JSON.parse 2020-10-31 10:06:37 +05:30
README.md Resize v2 image 2020-11-24 19:55:01 -05:00
vercel.json Add redirect for v1 newSingle 2020-11-24 19:36:36 -05:00

CDN

Deep under the waves and storms there lies a vault...

Raft icon

Illustration above by @maxwofford.


CDN powers the #cdn channel in the Hack Club Slack.

Version 2 Version 2

Post this JSON...

[
  "website.com/somefile.png",
  "website.com/somefile.gif",
]

And it'll return the following:

{
  "0somefile.png": "cdnlink.vercel.app/0somefile.png",
  "1somefile.gif": "cdnlink.vercel.app/1somefile.gif"
}

Version 1 Version 1

Post this JSON...

[
  "website.com/somefile.png",
  "website.com/somefile.gif",
]

And it'll return the following:

[
  "cdnlink.vercel.app/0somefile.png",
  "cdnlink.vercel.app/1somefile.gif"
]