Skip to content

Commit 33f9711

Browse files
committed
refresh token to unprotected route
1 parent de9d0c6 commit 33f9711

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/routes/auth.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ pub fn public_router() -> Router<AppState> {
1111
.route("/verify-email", post(auth::verify_email))
1212
.route("/resend-verification-code", post(auth::resend_verification_code))
1313
.route("/social-login", post(socials::social_login))
14+
.route("/refresh-token", post(auth::refresh_token))
15+
.route("/logout", post(auth::logout))
16+
.route("/logout-all", post(auth::logout_all_devices))
1417

1518
}
1619

1720
pub fn protected_router() -> Router<AppState> {
1821
Router::new()
1922
.route("/delete-account", post(auth::delete_account))
20-
.route("/refresh-token", post(auth::refresh_token))
21-
.route("/logout", post(auth::logout))
22-
.route("/logout-all", post(auth::logout_all_devices))
23+
2324

2425
}

0 commit comments

Comments
 (0)