fix: consistent update routes
This commit is contained in:
parent
88f5b602fa
commit
4a7e64b16a
2 changed files with 5 additions and 5 deletions
|
@ -226,7 +226,7 @@ async fn delete_user_form_submission_handler(
|
||||||
// Verify email handler
|
// Verify email handler
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[get("/owner/user/verify/email")]
|
#[get("/owner/user/email/verify")]
|
||||||
#[tracing::instrument(name = "Verify email UI handler", skip())]
|
#[tracing::instrument(name = "Verify email UI handler", skip())]
|
||||||
async fn verify_email_ui_handler() -> WebJsonRepsonse<impl Responder> {
|
async fn verify_email_ui_handler() -> WebJsonRepsonse<impl Responder> {
|
||||||
const VERIFY_EMAIL: &str = include_str!("./owner_verify_email.html");
|
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)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[post("/owner/user/verify/email")]
|
#[post("/owner/user/email/verify")]
|
||||||
#[tracing::instrument(
|
#[tracing::instrument(
|
||||||
name = "Verify email form submission handler"
|
name = "Verify email form submission handler"
|
||||||
skip(id, req, identity_cqrs_exec)
|
skip(id, req, identity_cqrs_exec)
|
||||||
|
@ -253,7 +253,7 @@ async fn verify_email_form_submission_handler(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[allow(clippy::too_many_arguments)]
|
||||||
#[get("/owner/user/verify/email")]
|
#[get("/owner/user/email/verify/resend")]
|
||||||
#[tracing::instrument(
|
#[tracing::instrument(
|
||||||
name = "Resend verification email handler",
|
name = "Resend verification email handler",
|
||||||
skip(id, req, identity_cqrs_exec)
|
skip(id, req, identity_cqrs_exec)
|
||||||
|
|
|
@ -33,8 +33,8 @@ impl Default for RoutesRepository {
|
||||||
owner_login: "/owner/login".into(),
|
owner_login: "/owner/login".into(),
|
||||||
owner_register: "/owner/register".into(),
|
owner_register: "/owner/register".into(),
|
||||||
owner_delete: "/owner/user/delete".into(),
|
owner_delete: "/owner/user/delete".into(),
|
||||||
owner_verify_email: "/owner/user/verify/email".into(),
|
owner_verify_email: "/owner/user/email/verify".into(),
|
||||||
owner_resend_verification_email: "/owner/user/verify/email/resend".into(),
|
owner_resend_verification_email: "/owner/user/email/verify/resend".into(),
|
||||||
owner_update_email: "/owner/user/email/update".into(),
|
owner_update_email: "/owner/user/email/update".into(),
|
||||||
owner_change_password: "/owner/password/change".into(),
|
owner_change_password: "/owner/password/change".into(),
|
||||||
//owner_set_admin: "/owner/user/promote/admin".into(),
|
//owner_set_admin: "/owner/user/promote/admin".into(),
|
||||||
|
|
Loading…
Reference in a new issue