Skip to content

make configurable via dotenv like in real life #4

@github-actions

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...");

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions