Skip to content

Instantly share code, notes, and snippets.

@mauricemach
Created September 30, 2011 02:24
Show Gist options
  • Save mauricemach/1252502 to your computer and use it in GitHub Desktop.
Save mauricemach/1252502 to your computer and use it in GitHub Desktop.
require('zappa') ->
before = (req, res, next) ->
console.log 'before'
next()
@use before
@get '/': ->
console.log 'route'
'route'
@get '/foo': ->
console.log 'foo'
'foo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment