Fork me on GitHub

I don't want to redirect. I build an API where I create an endpoint like /image/w/h/id1/id2and this returns an image with the width and the height. Depending on the requested image, it may be already present on the server or needs to be generated.


@danielgrosse Oh, I read „image location“ as url location. To return an image you’d need to specify the correct media-type in :available-media-types, say image/png and return a or a bytearray from the hander.