code: function find(req, res, next) {
      if (req.query.q) {
  
        // Full-text search
        var q = req.query.q.toLowerCase()
        req._internal.resource = db(req.params.resource).filter(function (obj) {
          for (var key in obj) {
            var value = obj[key]
            if (_.isString(value) && value.toLowerCase().indexOf(q) !== -1) {
              return true
            }
          }
        })
        return next() // don't worry about filters or 404ing, just move along.
      }
      if (_(req._internal.filters).isEmpty() || typeof req._internal.filters === 'undefined') { // No filters at all, including ID
        req._internal.resource = db(req.params.resource).value()
      } else { // filters present
        req._internal.resource = db(req.params.resource).filter(req._internal.filters)
      }
      if (req._internal.resource) { // if there even is a resource found
        if (req._internal.filters.id && req._internal.resource.length === 1) {
          req._internal.resource = req._internal.resource[0]
        }
        if (req._internal.resource.length !== 0) {
          return next()
        }
      }
      res.status(404).jsonp({})
    }
docs: GET /:resource/:id