add desktop server functions example

This commit is contained in:
Evan Almloff committed 2023-04-03 13:34:34 -05:00
1 parent 7ae45272d1
commit 0e445c9f59
7 files changed
+112 -3

No files matched your search

@@ -0,0 +1,13 @@
// Run with:
// ```bash
// cargo run --bin client --features="desktop"
// ```
use axum_desktop::*;
use dioxus_server::prelude::server_fn::set_server_url;
fn main() {
// Set the url of the server where server functions are hosted.
set_server_url("http://localhost:8080");
dioxus_desktop::launch(app)
}