kinlane
5/5/2015 - 4:02 PM

Why The API Pattern is Broken and How We Can Fix It - Code Sample - Controller Code 2

Why The API Pattern is Broken and How We Can Fix It - Code Sample - Controller Code 2

def show(){
        // NO data checks required
        // NO role checks required

        Widget widget = Widget.get(params.id.toLong())
        …
}