couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: workaround for url rewrite formatting
Date Tue, 07 Jun 2011 20:15:17 GMT
On Tue, Jun 7, 2011 at 10:11 PM, Caolan McMahon
<caolan.mcmahon@gmail.com> wrote:
>> {
>>    "from":"/<year>-<month>-<day>",
>>    "to": "_show/calendar/<year>:<month>:<day>"
>> }
>
> I just tested out exactly this rewrite in CouchDB 1.1.0 and it fails
> to match the URL "/2011-06-07". I've implemented a client-side version
> of this rewriter in Kanso (http://kansojs.org) that works, but there's
> not much point me pushing it until it also works on CouchDB.
>
> Has anybody got this working?
>
> Caolan
>

like I said I didn't write that :) You can do that in couchapp-ng though.

https://github.com/benoitc/couchapp-ng

- benoît

Mime
View raw message