 	# todo get list of databases from data dir
 	res.send(["docs"])
 
-# GET :db/:collection handler
+# GET db/collection handler
 # TODO support ?selector={}
 get_collection = (req, res) ->
 	db = load_db req
 	db.find {}, (err, docs) ->
 		send_docs(res, err, docs)
 
-# GET :db/:collection/:id handler
+# GET db/collection/id handler
 get_doc = (req, res, doc_handler) ->
 	db = load_db req
 	id = req.params.id

# rest api
path = require 'path'
Nedb = require 'nedb'

# dirs
root = path.dirname __dirname

			return res.send {error: err} if err
			res.send serialize_doc(doc)

# GET db/collection/id/metadata
get_meta = (req, res) ->
	get_doc req, res, (doc) -> doc.$metadata

