             delete doc._rev # CouchDB specific, user don't need it
             send doc
 
+# POST /data
+# POST /data/:id
 action 'create', ->
     if params.id
         db.get params.id, (err, doc) -> # this GET needed because of cache

            else
                send {"_id": res.id}, 201

action 'delete', ->
    # this version don't take care of conflict (erase DB with the sent value)
    db.get params.id, (err, doc) ->

db = connection.database("cozy")


# GET /data/exist/:id
action 'exist', ->
    db.head params.id, (err, res, status) ->
        if status is 200
