diff --git a/couchdb/maze/design-doc.json b/couchdb/maze/design-doc.json index 0e28d4e..7542cc1 100644 --- a/couchdb/maze/design-doc.json +++ b/couchdb/maze/design-doc.json @@ -8,10 +8,10 @@ "shows" : { "cells" : "function(doc,req){ - return {body:doc.cells, headers : {'content-type':'application/json'}} + return {body:JSON.stringify(doc.cells), headers : {'content-type':'application/json'}} }" }, - + "validate_doc_update" : "function(newDoc, oldDoc, userCtx){ throw {forbidden : 'read-only'} }" diff --git a/couchdb/maze/maze_data.sh b/couchdb/maze/maze_data.sh old mode 100644 new mode 100755