You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm thinking about adding Express Validator to Zappa. I wrote a blog post about the sugar I'm using to make it nice.
Adding it straight into zappa will make two functions available @assert and @sanitize. I can also add support for socket.io.
Any thoughts on how the API should look like?
@get'/health', ->@on_error=@next# This is the error handler,# if asserting goes wrong, next()# is the default express error handler,# and @on_error should be equal to# next by default@pre=>@assert('param', 'Invalid Param').notEmpty()
, =># Validation Passed@response.jsonpid:process.pidmemory:process.memoryUsage()
uptime:process.uptime()
Also: the github fork this project link in Zappa's website is broken, and leads to the wrong repo.
The text was updated successfully, but these errors were encountered:
Hey,
I'm thinking about adding Express Validator to Zappa. I wrote a blog post about the sugar I'm using to make it nice.
Adding it straight into zappa will make two functions available
@assert
and@sanitize
. I can also add support for socket.io.Any thoughts on how the API should look like?
Also: the github fork this project link in Zappa's website is broken, and leads to the wrong repo.
The text was updated successfully, but these errors were encountered: