Makes the hook accept POST requests