pouchdb / pouchdb-fauxton

Fork of CouchDB Fauxton for PouchDB Server
Apache License 2.0
6 stars 7 forks source link

We need to get the subdirectories out of the db namespace #6

Closed yaronyg closed 9 years ago

yaronyg commented 9 years ago

Right now the Fauxton subdirectories /js, /css, /img and /fonts are hung off the root. As per https://github.com/pouchdb/express-pouchdb/issues/131 this brings up two main problems.

  1. What if we are hosting the service somewhere other than that root? Such as /db/? The sub-directories are still only available off /img, /fonts, etc.
  2. The sub-directory names are also legal DB names. So what if someone wants to create a db called fonts? It will collide with Fauxton.

I suspect the best solution is to hang these directories off _utils, where ever it is in the path. This clears both the namespace collision problem and the namespace invasion problem. However to make that work we both need to change the paths in express-pouchdb\index.js but we also need to change the index.html produced in couchdb-fauxton.

nolanlawson commented 9 years ago

@yaronyg So this is just a fork of the main Fauxton project; if you want to file it upstream you will need to go to https://issues.apache.org/jira/browse/COUCHDB.

yaronyg commented 9 years ago

Fair enough. Honestly I don't care enough right now to follow up on this. I need to stay focused. So I'll close the issue here since it isn't relevant to this project and if and when it matters enough I can go register for an Apache account and file an issue there.