import { InterceptorInterface , Action } from 'routing-controllers' ; interface ResultObject { result : boolean ; content : object ; } export class ResponseJosnInterceptor implements InterceptorInterface { intercept ( _ , content ) { const resultObject = { } ; resultObject . result = true ; resultObject . content = content ; return resultObject ; } }