Changed end point to get product by slug in client from /api/product to /api/products.