OptionalcreateOptionaldestroyDELETE /route/:id Delete a resource
OptionalhandleCustom handler for non-RESTful routes Use this for wildcards (e.g., /api/v1/auth/*) or custom patterns Takes precedence over RESTful methods if defined
OptionalindexOptionalpatchPATCH /route/:id Patch a resource (partial update)
OptionalshowGET /route/:id Show a specific resource
OptionalupdatePUT /route/:id Update a resource (full replacement)
Controller interface for handling HTTP requests
Controllers can implement RESTful methods or a custom handle() method. The route for the controller is set via the
@Controllerdecorator.RESTful methods auto-map to HTTP verbs:
For non-RESTful routes (wildcards, custom patterns), implement handle()