Image proxy
GET /i/:folder/:filename streams a single stored image through the API.
Image proxy route
Streams a single image through the API. This is the endpoint that image routes point their url at.
GET
https://api.lunargroup.dev/i/:folder/:filenamePublicStream a single stored image by folder and filename.
Path parameters
folderstringrequired
One of
fox, bird, shibe, weiner-dog, slap, hug, kiss, pat, smug.filenamestringrequired
Must match
^[a-zA-Z0-9._-]+$. Cannot contain .. or /.Behaviour
- Successful responses set
Content-Typefrom the upstream object (falling back toimage/jpeg) and stream the bytes through. - The route is registered directly on
app, so it is public but still inherits the global rate limit.
A failed lookup responds with:
{ "status": 404, "message": "Image not found" }