code: function createResource (req) {
    let resource = new Resource(req.path);
  
    if (!_.isEmpty(req.files)) {
      // Save file data too
      resource.data = _.extend({}, req.body, req.files);
    }
    else {
      resource.data = req.body;
    }
  
    return resource;
  }
docs: Creates a {@link Resource} objects from the request's data.
  
  @param   {Request}   req
  @returns {Resource}