modify flight server to make routes generic