couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: _rewrite handler
Date Sat, 05 Dec 2009 08:48:12 GMT
On Saturday, December 5, 2009, Roger Binns <rogerb@rogerbinns.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 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?

Mime
View raw message