Hi, is there *any* way within CouchDB to modify a GET URL to replace
certain characters in the document id?
More specifically what I'd like to do is take a request URL that
contains forward slashes, such as:
a/b/c/d.jpg
and transform this to return a document which has the id:
a%2Fb%2Fc%2Fd.jpg
etc.
I've tried the rewrite functionality, but doesn't look like it supports
modifying characters. I've also tried hacky approaches like this:
{
"from": "/file/:a/:b/:c/:d",
"to": "../../:a%2:b%2:c%2:d"
}
but the URL doesn't replace this correctly (shows "undefined" in the URL)
show functions can't seem to handle rendering attachments as far as I
can tell.
Any ideas? I know about reverse proxys, etc, just would like to avoid
additional layers here.
Thanks