smart-house-web: в работе
This commit is contained in:
@@ -27,7 +27,9 @@ pub fn run_server() {
|
||||
}
|
||||
|
||||
async fn server_main() {
|
||||
let app = axum::Router::new().fallback(fallback);
|
||||
let app = axum::Router::new()
|
||||
// TODO
|
||||
.fallback(fallback);
|
||||
let addr = "127.0.0.1:8080";
|
||||
let listener = match tokio::net::TcpListener::bind(addr).await {
|
||||
Ok(listener) => listener,
|
||||
|
||||
Reference in New Issue
Block a user