create server launch macro

This commit is contained in:
Evan Almloff committed 2023-06-23 18:23:03 -07:00
1 parent f9161f0a9b
commit 99674fcf94
20 files changed
+359 -334

No files matched your search

@@ -1,6 +1,6 @@
// Run with:
// ```bash
// cargo run --bin client --features="desktop"
// cargo run --bin client --features desktop
// ```
use axum_desktop::*;
@@ -8,6 +8,6 @@ use dioxus_fullstack::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");
set_server_url("http://127.0.0.0:8080");
dioxus_desktop::launch(app)
}
@@ -1,9 +1,8 @@
// Run with:
// ```bash
// cargo run --bin server --features="ssr"
// cargo run --bin server --features ssr
// ```
use axum_desktop::*;
use dioxus_fullstack::prelude::*;
#[tokio::main]