Function for "serving" response
Function for "serving" response

If the function is returned it will be used for serving result to client.

```
// TODO: ...

export default function raw(req, path) {
  return new Promise((resolve, reject) => {
    // Init s3 somehow
    const s3 = server.persistence.s3; 

    const key = path.join('/');

    resolve((res) => {
      s3.client
        .getObject({Key: key})
        .on('error', (err) => {
          res.status(400)
            .send(err);
          reject(err);
        })
        .createReadStream()
        .pipe(res);
    });
  });
}

```
Boelensman1/championpick2