Hello,
I am writing very first
hook.io deployment.
I have the following code for the main entry point to the server.
module['exports'] = function handleMessage (hook) {
if (hook.req.method === 'GET') {
if (hook.params['hub.verify_token'] === 'verifycode') {
hook.res.end(hook.params['hub.challenge']);
}
}
else if (hook.req.method === 'POST') {
}
};
- Here, problem is that Even if I call http GET method, it is always treated as "POST" . if block for GET is never executed.
IT would be great if you can try to help what's wrong is happening here
Thx,
Arpit