code: function determineProvider (req, res, next) {
    var providerID = req.params.provider || req.body.provider
    if (providerID && settings.providers[providerID]) {
      req.provider = providers[providerID]
    }
    next()
  }
docs: Determine provider middleware