Skip to content

make configurable via dotenv like in real life #4

Description

@github-actions

Line: 46

MADstack/src/main.rs

Lines 43 to 53 in 12cd562

.route("/echoes", post(echoes::create))
.with_state(pool);
// TODO: make configurable via dotenv like in real life
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000")
.await
.expect("failed to bind to 0.0.0.0:3000");
axum::serve(listener, app)
.await
.expect("failed axum::serve...");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions