change route order for rest api