couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <>
Subject Re: Rewriting URLs
Date Sat, 04 Jul 2009 22:08:57 GMT
Hey Jason,

On Sat, Jul 04, 2009 at 10:34:27PM +0100, Jason Davies wrote:
> The basic idea is you add a "rewrites": [...] member to your design doc.
> This will allow rewriting of any URLs with the prefix mydb/
> _design/app/_rewrite.  The "rewrites" member is a list of rewrite rules
> of the form {match: ["foo/bar/<var>"], rewrite:["_view/myview",
> {startkey: ["<var>"], endkey: ["<var>", {}]}]

This is great!

Don't let me contribute stop-energy, but I am thinking that if we're going to do
this, we might want to go the full way an implement this from the root URI of
the whole CouchDB server instead.


Noah Slater,

View raw message