             else
                 send {"_id": res.id}, 201
 
+# PUT /data/:id
 action 'update', ->
     # this version don't take care of conflict (erase DB with the sent value)
     db.get params.id, (err, doc) ->

        else if status is 404
            send {"exist": false}

action 'find', ->
    db.get params.id, (err, doc) ->
        if err

            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
