everything ready !
This commit is contained in:
parent
aa5140842e
commit
0cbee2e73e
7 changed files with 44 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use agahnim_web_v2::templates::index::home;
|
||||
use axum::{Router, routing::get};
|
||||
use tower_http::services::ServeDir;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let app = Router::new()
|
||||
.route("/", get(|| async { "Hello World" }))
|
||||
.route("/", get(home))
|
||||
.nest_service("/static", ServeDir::new("static"));
|
||||
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:7122")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue