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.

GEThttps://api.lunargroup.dev/i/:folder/:filenamePublic
Stream a single stored image by folder and filename.
Path parameters
folder
stringrequired
One of fox, bird, shibe, weiner-dog, slap, hug, kiss, pat, smug.
filename
stringrequired
Must match ^[a-zA-Z0-9._-]+$. Cannot contain .. or /.

Behaviour

  • Successful responses set Content-Type from the upstream object (falling back to image/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" }