Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
register app_config
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelillo15 committed Nov 16, 2023
1 parent c6a2c53 commit c1123a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn main() -> std::io::Result<()> {

HttpServer::new(|| {
actix_web::App::new()
.route("/", actix_web::web::get().to(|| async { "Hello, world!" }))
.configure(|cfg| tail::app_config(cfg))
})
.bind((config.server.ip, config.server.port))?
.run()
Expand Down

0 comments on commit c1123a6

Please sign in to comment.