Add post hook endpoint and console logging