Files
dioxus/packages/fullstack/examples/axum-desktop/src/client.rs
T
2024-02-09 12:15:59 -06:00

14 lines
334 B
Rust

// Run with:
// ```bash
// cargo run --bin client --features desktop
// ```
use axum_desktop::*;
fn main() {
// Set the url of the server where server functions are hosted.
#[cfg(not(feature = "server"))]
dioxus::fullstack::prelude::server_fn::set_server_url("http://127.0.0.1:8080");
dioxus::desktop::launch(app)
}