I am currently facing an issue with the controller function in my TypeScript code. Although the handler function is present in the controller file, it is still giving me an error.
export const test = {
options:{
handler: (request, reply) => {
return reply.response({a: "Hello World"}).code(200);
},
plugins: {
"hapi-swagger": {
responses: {'200': {'description': 'OK'}
}
}
},
tags: undefined
}
}
};