diff options
author | xnacly <matteogropp@gmail.com> | 2020-12-31 13:55:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 13:55:28 +0100 |
commit | b9d40cbca0c91fd3f42d42a47496e0f16e5ebe38 (patch) | |
tree | 5c60b85718248712091345a310680db32566c697 | |
parent | Update README.md (diff) | |
download | server-b9d40cbca0c91fd3f42d42a47496e0f16e5ebe38.tar.xz |
Update README.md
-rw-r--r-- | README.md | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/README.md b/README.md index ec28d6d5..491db0c0 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ cdn for discord clone ## Endpoints: -### `/attachments/<filename>` -#### POST +### POST `/attachments/<filename>` ``` Content-Type: form-data @@ -18,8 +17,7 @@ attachment: File "filename": string // "lakdoiauej.png" } ``` -### `/attachments/<id>/<filename>` -#### GET +### GET `/attachments/<id>/<filename>` ``` requests image from database with given <id> and <filename> ``` @@ -28,8 +26,7 @@ requests image from database with given <id> and <filename> Content-Type: image/<imageType(png,img,gif)> Image ``` -### `/attachments/<id>/<filename>` -#### DELETE +### DELETE `/attachments/<id>/<filename>` ``` deletes database entry ``` @@ -46,8 +43,8 @@ Content-Type: application/json <hr> _(endpoints for crawler):_ -### `/external` -#### POST +### POST `/external` + ``` requests crawling of `og:`metadata and the download of the `og:image` property -------- @@ -69,8 +66,7 @@ Content-Type: application/json "ogType": string // "website" } ``` -### `/external/<id>/<filename>` -#### GET +### GET `/external/<id>/<filename>` - requests cached crawled image ``` url-params: |