Set routes using resources