(advertise_host: &str)
| 6060 | } |
| 6061 | |
| 6062 | fn bonjour_service_name(advertise_host: &str) -> String { |
| 6063 | let host = advertise_host.trim(); |
| 6064 | if host.is_empty() || host == "127.0.0.1" || host == "localhost" { |
| 6065 | "SimDeck".to_owned() |
| 6066 | } else { |
| 6067 | format!("SimDeck {host}") |
| 6068 | } |
| 6069 | } |
| 6070 | |
| 6071 | fn app_router(state: AppState, client_root: PathBuf, access_token: String) -> Router { |
| 6072 | router(state).fallback( |