0

There is app.all for express to handle all methods for any endpoint like this

app.all '*', (req, res) ->
    # code goes here

I could not find equivalent one for zappa. It throws error if I try @all. What is the equivalent on in zappajs?

mu is too short
  • 396,305
  • 64
  • 779
  • 743
ravi.chunduru
  • 186
  • 2
  • 5

1 Answers1

0

This is working on my Zappa 0.4.12 server:

@all '*': ->
    console.log( "all requests" )
adriantoine
  • 1,971
  • 1
  • 13
  • 14