load the right route api