add get_route and get_method, functions for register