Skip to content
Browse files

Added json method.

Code from [mauricemach#123
  • Loading branch information...
1 parent 702cbca commit 963dbb2358b286fff5df164810de1868b145d9a0 @shimaore shimaore committed Apr 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/zappa.coffee
View
1 src/zappa.coffee
@@ -259,6 +259,7 @@ zappa.app = (func) ->
response: res
next: next
send: -> res.send.apply res, arguments
+ json: -> res.json.apply res, arguments
redirect: -> res.redirect.apply res, arguments
render: ->
if typeof arguments[0] isnt 'object'

0 comments on commit 963dbb2

Please sign in to comment.
Something went wrong with that request. Please try again.