A new `invoke` function calls either the tauri backend or the `test-http-api` function if ran in a browser.