-----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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksZvu0ACgkQmOOfHg372QRHXQCdFT2mpbYNpocVrs4vwhjL1xgc
2mAAoLMfzx3zOlEyasKK3hsc/cnqkvHv
=Qj3u
-----END PGP SIGNATURE-----

Reply via email to