In the Rhino application, routing can be introduced using shiny.router package. A detailed tutorial on how to apply it in Rhino applications can be found here.