Skip to content

Commit b2548e9

Browse files
authored
Merge pull request #41 from piyook/piyook-patch-1
Update README.md
2 parents f2c1588 + e2785db commit b2548e9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,24 @@ http://localhost:8000/api/images/placeholder.png
239239
http://localhost:8000/api/videos/sample.mp4
240240
```
241241
242+
#### Listing available media
243+
244+
List all available media by visiting the media root folder (/api/{images|videos}) in a browser or by sending a GET request to
245+
246+
```
247+
/api/{images|videos}/list
248+
```
249+
This path returns a JSON object describing the media type and available files in the /resources/{images|videos} folder.
250+
```
251+
{
252+
"mediaType": "image",
253+
"files": [
254+
"placeholder.png",
255+
"placeholder2.png"
256+
]
257+
}
258+
```
259+
242260
#### Dynamic Image Resizing
243261
244262
Resize PNG images by adding width and height parameters:

0 commit comments

Comments
 (0)