code: function (req, res) {
                  var s3 = new AWS.S3(),
                      bucket = req.params.name,
                      params = {
                          Bucket: bucket
                      },
                      handleCreateBucket = function (err, data) {
                          if (err) {
                              res.status(500).send(err);
                          } else {
                              // Add s3g link to reference the resource
                              data.links = [{
                                  rel: 'self',
                                  href: getOriginalink(req, bucket)
                              }];
  
                              res.json(data);
                          }
                      };
  
                  s3.createBucket(params, handleCreateBucket);
              }
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