fix: consistent update routes

This commit is contained in:
Aravinth Manivannan 2025-01-09 23:22:57 +05:30
parent 88f5b602fa
commit 4a7e64b16a
Signed by: realaravinth
GPG key ID: F8F50389936984FF
2 changed files with 5 additions and 5 deletions

View file

@ -226,7 +226,7 @@ async fn delete_user_form_submission_handler(
// Verify email handler
#[allow(clippy::too_many_arguments)]
#[get("/owner/user/verify/email")]
#[get("/owner/user/email/verify")]
#[tracing::instrument(name = "Verify email UI handler", skip())]
async fn verify_email_ui_handler() -> WebJsonRepsonse<impl Responder> {
const VERIFY_EMAIL: &str = include_str!("./owner_verify_email.html");
@ -237,7 +237,7 @@ async fn verify_email_ui_handler() -> WebJsonRepsonse<impl Responder> {
}
#[allow(clippy::too_many_arguments)]
#[post("/owner/user/verify/email")]
#[post("/owner/user/email/verify")]
#[tracing::instrument(
name = "Verify email form submission handler"
skip(id, req, identity_cqrs_exec)
@ -253,7 +253,7 @@ async fn verify_email_form_submission_handler(
}
#[allow(clippy::too_many_arguments)]
#[get("/owner/user/verify/email")]
#[get("/owner/user/email/verify/resend")]
#[tracing::instrument(
name = "Resend verification email handler",
skip(id, req, identity_cqrs_exec)

View file

@ -33,8 +33,8 @@ impl Default for RoutesRepository {
owner_login: "/owner/login".into(),
owner_register: "/owner/register".into(),
owner_delete: "/owner/user/delete".into(),
owner_verify_email: "/owner/user/verify/email".into(),
owner_resend_verification_email: "/owner/user/verify/email/resend".into(),
owner_verify_email: "/owner/user/email/verify".into(),
owner_resend_verification_email: "/owner/user/email/verify/resend".into(),
owner_update_email: "/owner/user/email/update".into(),
owner_change_password: "/owner/password/change".into(),
//owner_set_admin: "/owner/user/promote/admin".into(),