 					interceptError res
 				).done()
 
-	next()+	next()
+	
+exports.$replContext = (context) ->
+	
+	context.schema = require 'server/jugglingdb'

					req.params.id
				
				).then(
					(model) -> serveJson res, 200, model
					interceptError res
				).done()
	

					req.body

				).then(
					(model) -> serveJson res, 201, keyify resource, model
					interceptError res
				).done()

