// Response returns the resource as a response.
Response returns the resource as a response.
// Response returns the resource as a response .
func (r *JsonResource) Response() {
	obj := r.resolve()
	wrapKey := DefaultWrapKey
	if len(r.wrap) > 0 {
		wrapKey = r.wrap
	}
	if r.append != nil {
		obj = gin.H{
			wrapKey:          obj,
			DefaultAppendKey: r.append,
		}
	}
	response.OK(r.ctx, obj)
}
func ( r * JsonResource ) Response ( ) { obj := r . resolve ( ) wrapKey := DefaultWrapKey if len ( r . wrap ) > 0 { wrapKey = r . wrap } if r . append != nil { obj = gin . H { wrapKey : obj , DefaultAppendKey : r . append , } } response . OK ( r . ctx , obj ) }
Response returns the resource as a response.
Response returns the resource as a response .