Export the createRoute method