added test api function that just returns a string thank you obama
This commit is contained in:
@@ -154,3 +154,7 @@ async fn fetch_driver(url: &'static str) -> Result<String, FetchError> {
|
||||
let text = JsFuture::from(resp.text()?).await?;
|
||||
Ok(text.as_string().unwrap())
|
||||
}
|
||||
//render obama
|
||||
pub fn render_driver() {
|
||||
yew::Renderer::<Driver>::new().render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user