Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,24 @@ http://localhost:8000/api/images/placeholder.png
http://localhost:8000/api/videos/sample.mp4
```

#### Listing available media

List all available media by visiting the media root folder (/api/{images|videos}) in a browser or by sending a GET request to

```
/api/{images|videos}/list
```
This path returns a JSON object describing the media type and available files in the /resources/{images|videos} folder.
```
{
"mediaType": "image",
"files": [
"placeholder.png",
"placeholder2.png"
]
}
```

#### Dynamic Image Resizing

Resize PNG images by adding width and height parameters:
Expand Down