Skip to content

Commit

Permalink
combine routes!
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Nov 23, 2024
1 parent ebf834c commit be7c6ed
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 be7c6ed

Please sign in to comment.