dispatch routes on server