controller-handlers
Installation
SKILL.md
Writing Controller Handlers
Controller handler functions follow a standardized pattern with consistent return types and error handling.
Handler Function Signature
All handler functions use this signature:
func handlerName(_ http.ResponseWriter, req *http.Request) (*ModelType, int, error)
Parameters:
_- ResponseWriter (unused, handled by wrapper)req- HTTP request with context, params, and body