sets rest routes