neojski / visualizeRevTree

Visualize couchdb/pouchdb revision tree right in your browser
MIT License
36 stars 6 forks source link

Enter single url to document #2

Open daleharvey opened 10 years ago

daleharvey commented 10 years ago

Its usually easier to just give the url to the doc than to seperate its db + docid

neojski commented 10 years ago

As far as I remember I did it because it's not always possible to know which part of the url is the docId. But it's probably only with _design/designDoc, right?

daleharvey commented 10 years ago

The above commit / big PR does it, it takes out the first /dbname/ then joins the rest of the url so the rest is the docId

neojski commented 10 years ago

Fixed in #8

neojski commented 10 years ago

Now I know why I did that: suppose I have a corsproxy on 9292. Then http://localhost:9292/localhost:5984/xxx/yyy does not work.