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

			
			collectionPath = "#{schema.settings.apiRoot}/#{collection}"
			
			app.get collectionPath, (req, res) ->
				
				Model.authenticatedAll(

					interceptError res
				).done()

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