Dash Addition 

do you mean that you would just like to change this line here to app.route(...).get(etc) or you would like to move this line into the dash?