--- Revision None +++ Revision 366366643833 @@ -0,0 +1,29 @@ +{ + "_id": "_design/foo", + "_rev": "4-4735bc15354950518380a406775ba995", + "language": "javascript", + "views": { + "recent_posts": { + "map": "function(doc) { emit([doc.author, doc.date], doc.body); }" + } + }, + "rewrites": [ + { + "from": ":user_name/recent_posts", + "to": "_view/recent_posts", + "method": "GET", + "query": { + "descending": true, + "limit": 20, + "startkey": [ + ":user_name", + { + } + ], + "endkey": [ + ":user_name" + ] + } + } + ] +}