Fix route class for HATEOAS