use seed::prelude::*; pub async fn fetch_products() -> fetch::Result { Request::new("/api/v1/products") .method(Method::Get) .fetch() .await? .check_status()? .json() .await }