code: function (req, res) {
                  var s3 = new AWS.S3(),
                      bucket = req.params.name,
                      key = getFullKeyParam(req.params, req.route),
                      params = {
                          Bucket: bucket,
                          Key: key
                      },
                      handleError = function (err) {
                          res.status(500).send(err);
                      };
  
                  s3.getObject(params).createReadStream().on('error', handleError).pipe(res);
  
              }
docs: Set strict routing that /buckets/test/abc is not the same as /buckets/test/abc/ adding the slash at the end denotes creating a folder and not a file