rename handler

This commit is contained in:
Joe Ardent 2023-06-20 09:38:48 -07:00
parent a40794242b
commit 987d0937c9
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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<String>,
State(pool): State<SqlitePool>,
) -> Response {