couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Landolt <d...@deanlandolt.com>
Subject Re: external 404
Date Tue, 13 Jan 2009 03:53:00 GMT
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"]}



On Mon, Jan 12, 2009 at 10:18 PM, Jeff Hinrichs - DM&T
<dundeemt@gmail.com>wrote:

> On Mon, Jan 12, 2009 at 9:01 PM, Chris Anderson <jchris@gmail.com> wrote:
> > On Mon, Jan 12, 2009 at 5:47 PM, Jeff Hinrichs - DM&T
> > <dundeemt@gmail.com> wrote:
> >> Why was the additional level of abstraction necessary?   I saw the
> >> committ message
> >> r727973 | jchris | 2008-12-19 02:25:19 -0600 (Fri, 19 Dec 2008) | 1 line
> >>
> >> shorter path to _action servers, external supports better routing
> control
> >>
> >> It does make the url shorter, but I assume that there is more to it
> >> than just that.
> >>
> >> curious-ly,
> >>
> >> -Jeff
> >>
> >
> >
> > Jeff,
> >
> > We could change the API to map the externals from paths directly to
> > scripts, like
> >
> > [httpd_db_handlers]
> > _mypath = {couch_httpd_external, handle_external_req,
> "/path/to/my/script"}
> >
> > which would be fine by me.
> >
> > The current code is like it is because the original implementation was
> > designed to have multiple scripts mounted at the /db/_external path.
> >
> > Do you mind opening a ticket about this? - I'm happy to write the code
> > but I'm supposed to be working on the book right now, so it'll have to
> > wait.
> >
> > Thanks,
> > Chris
> >
> Issue created as https://issues.apache.org/jira/browse/COUCHDB-209
>
> Regards,
> -Jeff
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message