method for route request, code format