incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <jch...@gmail.com>
Subject Re: external 404
Date Tue, 13 Jan 2009 04:25:02 GMT
On Mon, Jan 12, 2009 at 7:53 PM, Dean Landolt <dean@deanlandolt.com> 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

Mime
View raw message