diff --git a/api/src/controller/player_info.rs b/api/src/controller/account.rs similarity index 100% rename from api/src/controller/player_info.rs rename to api/src/controller/account.rs diff --git a/api/src/controller/mod.rs b/api/src/controller/mod.rs index d8cb849..7864cd1 100644 --- a/api/src/controller/mod.rs +++ b/api/src/controller/mod.rs @@ -1,2 +1,2 @@ -pub mod player_info; +pub mod account; pub mod feedback; \ No newline at end of file diff --git a/api/src/router.rs b/api/src/router.rs index f57481f..03aef68 100644 --- a/api/src/router.rs +++ b/api/src/router.rs @@ -9,7 +9,7 @@ pub(crate) fn init() -> Router { let open = Router::new().route("/", get(|| async { "hello" })); let auth = Router::new() - .route("/game_accounts", post(controller::player_info::create)) + .route("/game_accounts", post(controller::account::create)) .route("/feedback", post(controller::feedback::add_feedback).get(controller::feedback::get_feedback_list_by_page)); Router::new()