Empty routes being sent to endpoint