natevw / fermata-couchdb

CouchDB helpers for Fermata
1 stars 0 forks source link

Better auto-detect #1

Open natevw opened 9 years ago

natevw commented 9 years ago

Right now the only "autodetect" is to fallback to "http://localhost:5984" as the server when no URL is provided. However, this could be extended to cover other common [browser-side] use cases:

natevw commented 9 years ago

Brainstorming: perhaps user can provide, instead of a url string, an options object e.g. {context:"vhost", target:"server"} as hints for the autodetect as to the current situation and the desired database vs. server target.