We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2c1588 + e2785db commit b2548e9Copy full SHA for b2548e9
README.md
@@ -239,6 +239,24 @@ http://localhost:8000/api/images/placeholder.png
239
http://localhost:8000/api/videos/sample.mp4
240
```
241
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
260
#### Dynamic Image Resizing
261
262
Resize PNG images by adding width and height parameters:
0 commit comments