couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <>
Subject Re: _rewrite handler
Date Sat, 05 Dec 2009 08:48:12 GMT
On Saturday, December 5, 2009, Roger Binns <> wrote:
> Hash: SHA1
> Benoit Chesneau wrote:
>> The design is very simple. Everything is managed via a simple
>> javascript function that return a path or throw 'forbidden',
>> 'unauthorized' and "not found" errors. The request object is passed to
>> the function and then depending on the path, verb or userCtx you could
>> decide how to rewrite the path.
> Is there any chance it could a document too?  For example it would be really
> nice if there was a document with an _id of "_rewrite_config" (or something
> similar) that was also passed to the function.  That document can then help
> parameterize what the rewriter does.
> Roger
what would do this doc?

View raw message