Skip to content

Commit

Permalink
Customize default route
Browse files Browse the repository at this point in the history
  • Loading branch information
megastary committed Apr 23, 2023
1 parent f2531c5 commit b186f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use axum::{routing::get, Router};

#[tokio::main]
async fn main() {
let app = Router::new().route("/", get(|| async { "Hello, world!" }));
let app = Router::new().route("/", get(|| async { "Hello, world! This is Jokkit." }));

axum::Server::bind(&"0.0.0.0:3000".parse().unwrap())
.serve(app.into_make_service())
Expand Down

0 comments on commit b186f38

Please sign in to comment.