smart-house-web: фронтенд эксперименты dioxus

This commit is contained in:
18 changed files with 349 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
use std::collections::HashMap;
use backend::{Device, Room, init_logger, server_main};
use backend::{Device, Room, axum_app, init_logger, server_main};
use reqwest::{Client, Response, StatusCode};
use serde_json::json;
use tokio::spawn;
@@ -11,7 +11,7 @@ type RqResult<T> = Result<T, reqwest::Error>;
#[tokio::test(flavor = "current_thread")]
async fn smoke() -> RqResult<()> {
init_logger();
spawn(server_main());
spawn(server_main(axum_app()));
let client = Client::new();