getStation(); $fsMedia = (new StationFilesystems($station))->getMediaFilesystem(); $path = $request->getParam('file'); if (!$fsMedia->fileExists($path)) { return $response->withStatus(404) ->withJson(Entity\Api\Error::notFound()); } return $response->streamFilesystemFile($fsMedia, $path); } }