On Saturday, December 5, 2009, Roger Binns <rog...@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?