Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SeleiXi authored Dec 21, 2024
1 parent 0888f71 commit b631bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions image_hosting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
To upload an image, send a `POST` request to `{hostname}/api/uploadImage`. Include the photo in the request body with the form-data field named "source".

### Example:
http://localhost:8000/api/uploadImage
http://localhost:8000/api/uploadImage / https://image.fduhole.com/api/uploadImage / https://image.fduhole.com/api/json

## Get Image

To retrieve an image, use the `GET` method with the following endpoint: `{hostname}/api/i/:year/:month/:day/:identifier`.

### Example:
http://localhost:8000/api/i/2024/12/06/6288772352016bf28f1a571d0.jpg
http://localhost:8000/i/2024/12/06/6288772352016bf28f1a571d0.jpg

## System Environment Variables
- DB_URL
Expand Down

0 comments on commit b631bab

Please sign in to comment.