abedev / abe

API for Back-End (Haxe, NodeJS and Express)
54 stars 10 forks source link

simplified expressions for `@:validate()` #43

Closed fponticelli closed 9 years ago

fponticelli commented 9 years ago

provides the ability to make argument validation this way:

@:validate(function(id) return id == 9)

or this way

@:validate(_ == 9)

Also moved test routes closer to their tests.

mlms13 commented 9 years ago

It's beautiful.