Skip to content

Commit

Permalink
Add 'session' back in.
Browse files Browse the repository at this point in the history
  • Loading branch information
shimaore committed Sep 8, 2011
1 parent 3a77b2d commit 7ca35c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zappa.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ zappa.app = ->
'helper', 'def', 'view', 'set', 'use', 'configure', 'include', 'shared', 'client', 'coffee', 'js', 'css',
'stylus', 'enable', 'disable', 'settings', 'postrender']

# TODO: session, cookies, app data, clients list
http: ['app', 'settings', 'response', 'request', 'next', 'params', 'send', 'render', 'redirect']
# TODO: cookies, app data, clients list
http: ['app', 'settings', 'response', 'request', 'next', 'params', 'send', 'render', 'redirect', 'session']

# TODO: app data, clients list, join
ws: ['app', 'io', 'settings', 'socket', 'id', 'params', 'client', 'emit', 'broadcast']
Expand Down Expand Up @@ -393,6 +393,7 @@ zappa.app = ->

locals.params = context
locals.request = req
locals.session = req.session
locals.response = res
locals.next = next
locals.send = -> res.send.apply res, arguments
Expand Down

0 comments on commit 7ca35c2

Please sign in to comment.