add routes to Resource