Add route def access in function route