@route(bp, '/<store_id>/products')
def products(store_id):
 return _stores.get_or_404(store_id).products

@ route ( bp , '/<store_id>/products' ) def products ( store_id ) : return _stores . get_or_404 ( store_id ) . products
returns a list of product instances belonging to a store .