Add route hooks.