In ColdBox, you can register resourceful routes to provide automatic mappings between HTTP verbs and URLs to event handlers and actions. Be convention, all resources map to a handler with the same name or can be customized if needed. You will have two methods:
This single route declaration will create all the necessary variations of patterns to actions to handle the resource. It will even create named routes for you.
If you pass in an argument called restful, then we will create only the true RESTFul routes below.
See attached screenshot