Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Jul 22, 2023
1 parent de0411c commit db35977
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions databases/postgres/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,11 @@ async fn main() -> std::io::Result<()> {
let pool = config.pg.create_pool(None, NoTls).unwrap();

let server = HttpServer::new(move || {
App::new()
.app_data(web::Data::new(pool.clone()))
.service(
web::resource("/users")
.route(web::post().to(add_user))
.route(web::get().to(get_users))
)
App::new().app_data(web::Data::new(pool.clone())).service(
web::resource("/users")
.route(web::post().to(add_user))
.route(web::get().to(get_users)),
)
})
.bind(config.server_addr.clone())?
.run();
Expand Down

0 comments on commit db35977

Please sign in to comment.