diff --git a/src/routes/admin/password/form.rs b/src/routes/admin/password/get.rs similarity index 100% rename from src/routes/admin/password/form.rs rename to src/routes/admin/password/get.rs diff --git a/src/routes/admin/password/mod.rs b/src/routes/admin/password/mod.rs index 202df11..699ba96 100644 --- a/src/routes/admin/password/mod.rs +++ b/src/routes/admin/password/mod.rs @@ -1,5 +1,5 @@ -mod action; -mod form; +mod get; +mod post; -pub(super) use action::change_password; -pub(super) use form::change_password_form; +pub(super) use get::change_password_form; +pub(super) use post::change_password; diff --git a/src/routes/admin/password/action.rs b/src/routes/admin/password/post.rs similarity index 100% rename from src/routes/admin/password/action.rs rename to src/routes/admin/password/post.rs diff --git a/src/routes/login/form.rs b/src/routes/login/get.rs similarity index 100% rename from src/routes/login/form.rs rename to src/routes/login/get.rs diff --git a/src/routes/login/mod.rs b/src/routes/login/mod.rs index 6a2654a..48ee02e 100644 --- a/src/routes/login/mod.rs +++ b/src/routes/login/mod.rs @@ -1,13 +1,13 @@ use crate::app_state::AppState; -use action::login; use axum::{ routing::{get, post}, Router, }; -use form::login_form; +use get::login_form; +use post::login; -mod action; -mod form; +mod get; +mod post; pub fn router() -> Router { Router::new() diff --git a/src/routes/login/action.rs b/src/routes/login/post.rs similarity index 100% rename from src/routes/login/action.rs rename to src/routes/login/post.rs