````rust use athene::{Request,Response,Result};
pub struct User { name: String, age: i32, }
pub async fn hello(req: Request) -> Result
pub async fn world(_req: Request) -> Result
pub async fn welcome(req: Request) -> Result
pub async fn index(_req: Request) -> Result
pub async fn login(req: Request) -> Result
pub async fn upload(req: Request) -> Result
pub async fn main(){ let mut http = athene::new(); http.get("/", index); http.get("/base",welcome); http.post("/upload", upload); // use middleware //http.middleware(middleware);
http.group("/api", |base|{
base.get("/hello/{name}", hello);
base.get("/world", world);
base.group("/user",|user|{
user.post("/",login);
});
});
http.listen("0.0.0.0:8081").await.unwrap();
} ````