// JavaScript const URL = "https://jsonplaceholder.typicode.com/todos"; async function todos() { return (await fetch(URL)).json(); } module.exports = todos; // Neon const URL: &str = "https://jsonplaceholder.typicode.com/todos"; #[neon::export(json)] async fn todos() -> Result<serde_json::Value, Error> { Ok(reqwest::get(URL).await?.json().await?) }


{{#tags}}- {{label}}
{{/tags}}