初步集成消息通道,支持Telegram + Lark机器人
This commit is contained in:
@@ -180,6 +180,19 @@ pub fn build_router(state: Arc<AppState>, token: String, static_dir: std::path::
|
||||
.route("/start_web_server", post(handlers::web_server::start_web_server))
|
||||
.route("/stop_web_server", post(handlers::web_server::stop_web_server))
|
||||
.route("/check_app_update", post(handlers::web_server::check_app_update))
|
||||
// ─── Chat Channels ───
|
||||
.route("/list_chat_channels", post(handlers::chat_channel::list_chat_channels))
|
||||
.route("/create_chat_channel", post(handlers::chat_channel::create_chat_channel))
|
||||
.route("/update_chat_channel", post(handlers::chat_channel::update_chat_channel))
|
||||
.route("/delete_chat_channel", post(handlers::chat_channel::delete_chat_channel))
|
||||
.route("/save_chat_channel_token", post(handlers::chat_channel::save_chat_channel_token))
|
||||
.route("/get_chat_channel_has_token", post(handlers::chat_channel::get_chat_channel_has_token))
|
||||
.route("/delete_chat_channel_token", post(handlers::chat_channel::delete_chat_channel_token))
|
||||
.route("/connect_chat_channel", post(handlers::chat_channel::connect_chat_channel))
|
||||
.route("/disconnect_chat_channel", post(handlers::chat_channel::disconnect_chat_channel))
|
||||
.route("/test_chat_channel", post(handlers::chat_channel::test_chat_channel))
|
||||
.route("/get_chat_channel_status", post(handlers::chat_channel::get_chat_channel_status))
|
||||
.route("/list_chat_channel_messages", post(handlers::chat_channel::list_chat_channel_messages))
|
||||
// ─── Terminal ───
|
||||
.route("/terminal_spawn", post(handlers::terminal::terminal_spawn))
|
||||
.route("/terminal_write", post(handlers::terminal::terminal_write))
|
||||
|
||||
Reference in New Issue
Block a user