Example
use ;
use ;
async
async
let app = new
.route
.route;
License
This project is licensed under the MIT license.
use viz_core::{IntoHandler, IntoResponse, Response, Result, Request};
use viz_router::{get, Router};
async fn index() -> Result<impl IntoResponse> {
Ok(())
}
async fn ws(_: Request) -> Result<Response> {
Ok(())
}
let app = Router::new()
.route("/", get(index.into_handler()))
.route("/ws/:name", get(ws));
This project is licensed under the MIT license.