diff --git a/src/lib.rs b/src/lib.rs index 8ff06b0..952383a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,7 +37,7 @@ pub async fn app(db_pool: sqlx::SqlitePool, session_secret: &[u8]) -> axum::Rout // don't bother bringing handlers into the whole crate namespace use generic_handlers::{handle_slash, handle_slash_redir}; use login::{get_login, get_logout, post_login, post_logout}; - use signup::{get_create_user, handle_signup_success, post_create_user}; + use signup::{get_create_user, get_signup_success, post_create_user}; use watches::handlers::{ get_add_new_watch, get_search_watch, get_watches, post_add_existing_watch, post_add_new_watch, @@ -46,7 +46,7 @@ pub async fn app(db_pool: sqlx::SqlitePool, session_secret: &[u8]) -> axum::Rout axum::Router::new() .route("/", get(handle_slash).post(handle_slash)) .route("/signup", get(get_create_user).post(post_create_user)) - .route("/signup_success/:id", get(handle_signup_success)) + .route("/signup_success/:id", get(get_signup_success)) .route("/login", get(get_login).post(post_login)) .route("/logout", get(get_logout).post(post_logout)) .route("/watches", get(get_watches)) diff --git a/src/signup.rs b/src/signup.rs index 3fe24b4..f16084f 100644 --- a/src/signup.rs +++ b/src/signup.rs @@ -107,7 +107,7 @@ pub async fn post_create_user( } /// Generic handler for successful signup -pub async fn handle_signup_success( +pub async fn get_signup_success( Path(id): Path, State(pool): State, ) -> Response {