Skip to content

Commit

Permalink
combine routes!
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Nov 22, 2024
1 parent 37b4560 commit 1636fa2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/demo/src/controllers/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,5 @@ pub fn routes() -> Routes {
}

pub fn api_routes() -> OpenApiRouter<AppContext> {
OpenApiRouter::new()
.routes(routes!(register))
.routes(routes!(verify))
.routes(routes!(login))
.routes(routes!(forgot))
.routes(routes!(reset))
OpenApiRouter::new().routes(routes!(register, verify, login, forgot, reset))
}

0 comments on commit 1636fa2

Please sign in to comment.