// handlers 模块 - 按功能拆分路由处理器 pub mod admin; pub mod auth; pub mod health; pub mod payment; pub mod static_files; pub mod user; pub mod weather; // 编译时嵌入目录(供 handlers 使用) pub use include_dir::{Dir, include_dir}; pub static STATIC_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/static"); pub static TEMPLATES_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/templates"); // re-export handlers for convenient use in main.rs pub use admin::admin_get_user; pub use admin::admin_update_user_payment; pub use auth::login; pub use health::health_check; pub use static_files::serve_static_files; pub use user::get_current_user_profile; pub use user::save_user_profile; pub use weather::delete_weather; pub use weather::generate_temp_token_handler; pub use weather::get_weather_brief; pub use weather::get_weather_details; pub use weather::post_weather_data; pub use payment::create_order; pub use payment::get_user_quota; pub use payment::mock_confirm;