1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-19 17:21:35 +02:00

Update README.md

This commit is contained in:
xnacly 2020-12-30 23:07:11 +01:00 committed by GitHub
parent 82e63ef807
commit 4ad77092d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,27 @@
# discord-cdn
cdn for discord clone
## Endpoints:
### /external
#### POST
```
Content-Type: application/json
body:
{"url": URL} // "https://discord.com"
```
##### Returns:
Content-Type: application/json
```ts
{
"id": string, // "aHR0cHM6Ly9kaXNjb3JkLmNvbQ=="
"ogTitle": string, // "Discord | Your Place to Talk and Hang Out"
"ogDescription": string, // "Discord is the easiest way to talk over voice, video, and text. Talk, chat, hang out, and stay close with your friends and communities."
"cachedImage": string, // "/external/aHR0cHM6Ly9kaXNjb3JkLmNvbQ==/discord.png"
"ogUrl": string, // "https://discord.com/"
"ogType": string // "website"
}
```
### /external/:id/:filename
#### GET