Viz

Robust Routing for Viz

Safety! Docs.rs docs Crates.io version Download

Example

```rust,norun use vizcore::{IntoHandler, IntoResponse, Response, Result, Request}; use viz_router::{get, Router};

async fn index() -> Result { Ok(()) }

async fn ws(_: Request) -> Result { Ok(()) }

let app = Router::new() .route("/", get(index.into_handler())) .route("/ws/:name", get(ws)); ```

License

This project is licensed under the MIT license.

Author