On Mon, Jan 12, 2009 at 7:53 PM, Dean Landolt <[email protected]> wrote:
> If it was for multiple scripts, why not allow for the pattern:
>
> _mypath = {couch_httpd_external, handle_external_req, ["/path/to/script/1,
> "/path/to/script/2"]}
>

It'd be

_mypath1 = {couch_httpd_external, handle_external_req, "/path/to/script/1"}
_mypath2 = {couch_httpd_external, handle_external_req, "/path/to/script/2"}

The reason for the old api was because it was designed to all live
under the name _external. Eg:

/db/_external/mypath1
/db/_external/mypath2

but that's changed.

I think since the extensions won't be standardized across CouchDB
installs, it's fine to let users pick their own paths.

-- 
Chris Anderson
http://jchris.mfdz.com

Reply via email to