add routes for resource for types