Skip to content

Commit

Permalink
Add login and logout to auth router
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakycrow committed Oct 31, 2024
1 parent ece25cf commit c134079
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ async fn main() {
.route("/", get(index))
.nest(
"/auth",
Router::new().route("/register", post(routes::auth::register)),
Router::new()
.route("/register", post(routes::auth::register))
.route("/login", post(routes::auth::login))
.route("/logout", get(routes::auth::logout)),
)
.nest(
"/user",
Expand Down

0 comments on commit c134079

Please sign in to comment.