Hi. I am new to back end development.
I was wondering how Slim 3 (or native PHP 7) can respond to requests with physical images?
e.g.
app.get("/foo/bar/img1", function($request, $response, $args) {
// get img from local folder on server
// send / stream that image to guzzle client
return $response.**_what?_**
});
I know this is probably a very broad question, but any tips or pointers to the right direction
would be great! Thanks