[coldbox-3.5.3][relax-1.7] handling verbs

you can declare this in a handler to limit what verbs maybe be used per method:

this.allowedMethods = {

you can declare this as a route to send a request to a particular method depending on the verb:


which way is better to secure a restful api?

Both do the same thing at the end but at different points in time.

The allowed methods Dow sit at the handler level so you can easily intercept the security exception with an on error method convention.

If you do it at the ses routing level it basically skips the route so you better have a route that handles the errors

Luis Majano
Ortus Solutions, Corp
Toll Free/Fax: 1-888-557-8057
Direct: 909-248-3408
Twitter: @lmajano, @ortussolutions

thanks, luis.