Skip to content

Commit

Permalink
feat: Update API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 11, 2024
1 parent 7c67c03 commit d686718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub async fn handle(channel: &mut Channel, room: &Arc<Mutex<Room>>, json: &str)
"room::broadcast" => room::broadcast::handle(channel, room, &val).await,
"room::users" => room::users::handle(channel, room, &val).await,
"room::sync" => room::sync::handle(channel, room, &val).await,
"room::update" => room::update::handle(channel, room, &val).await,
"room::update_client" => room::update_client::handle(channel, room, &val).await,
"file::users" => file::users::handle(channel, room, &val).await,
"file::say" => file::say::handle(channel, room, &val).await,
"file::sync" => file::sync::handle(channel, room, &val).await,
Expand Down Expand Up @@ -99,7 +99,7 @@ mod ping {
}
}

/// Ping pong
/// Initialize for client that has first connected.
mod init {
use crate::channel::*;
use crate::client::*;
Expand Down
2 changes: 1 addition & 1 deletion src/handler/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ pub mod broadcast {
}

/// Update a single client's information.
pub mod update {
pub mod update_client {
use crate::channel::*;
use crate::handler::room::*;
use crate::room::*;
Expand Down

0 comments on commit d686718

Please sign in to comment.