Containerfile and compose
This commit is contained in:
@ -151,10 +151,13 @@ fn get_dates(
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
const PORT: &'static str = "8000";
|
||||
let app = Router::new()
|
||||
.route("/", get(get_calendar))
|
||||
.route("/ics", get(get_ics));
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:8000").await.unwrap();
|
||||
println!("Starting Application on port {PORT}");
|
||||
|
||||
let listener = tokio::net::TcpListener::bind(format!("0.0.0.0:{PORT}")).await.unwrap();
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user