evantahler/actionhero — pull request #328 by jaulz (2014-02-20 13:40:43+00:00)
Title: Parses objects and arrays from URL

Extension of the fillParamsFromWebRequest function which allows URLs like:
/api/users?filter[email]=test@example.com&filter[name]=test
results in: filter { email: 'test@example.com', name: 'test' }

/api/users?sort[]=+createdAt&sort[]=-email
results in: sort['+createdAt', '-email']

/api/users?filter[email][]=test@example.com&filter[email][]=test2@example.com
results in: filter { email: ['test@example.com', 'test2@example.com'] }

This is for example useful if you like to use parameters from the URL in Mongoose.