Sort webapp du pmoserver dans la crate pmoapp

This commit is contained in:
2025-10-06 07:31:03 +02:00
parent 05a9c7100a
commit f87f467680
1243 changed files with 141 additions and 545245 deletions

View File

@@ -75,5 +75,5 @@ pub mod server;
pub mod logs;
mod upnp_impl;
pub use server::{Server, ServerBuilder, ServerInfo, Webapp};
pub use server::{Server, ServerBuilder, ServerInfo};
pub use logs::{LogState, SseLayer, log_sse, log_dump};

View File

@@ -23,8 +23,7 @@ use rust_embed::RustEmbed;
use serde::Serialize;
use std::{net::SocketAddr, sync::Arc};
use tokio::{signal, sync::RwLock, task::JoinHandle};
use tracing::{info, warn, debug, error};
use utoipa::OpenApi;
use tracing::info;
use utoipa_swagger_ui::SwaggerUi;
/// Info serveur sérialisable
@@ -48,10 +47,6 @@ pub struct Server {
join_handle: Option<JoinHandle<()>>,
}
#[derive(RustEmbed, Clone)]
#[folder = "webapp/dist"]
pub struct Webapp;
impl Server {
/// Crée une nouvelle instance de serveur
///