<p align="center">
<img src="https://raw.githubusercontent.com/viz-rs/viz-rs.github.io/gh-pages/logo.svg" height="200" />
</p>
<h1 align="center">
<a href="https://docs.rs/vidi">Vidi</a>
</h1>
<div align="center">
<p><strong>Robust Routing for Vidi</strong></p>
</div>
<div align="center">
<a href="/">
<img src="https://img.shields.io/badge/-safety!-success?style=flat-square"
alt="Safety!" /></a>
<a href="https://docs.rs/vidi-router">
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
alt="Docs.rs docs" /></a>
<a href="https://crates.io/crates/vidi-router">
<img src="https://img.shields.io/crates/v/vidi-router.svg?style=flat-square"
alt="Crates.io version" /></a>
<a href="https://crates.io/crates/vidi-router">
<img src="https://img.shields.io/crates/d/vidi-router.svg?style=flat-square"
alt="Download" /></a>
</div>
## Example
```rust,no_run
use vidi_core::{IntoHandler, IntoResponse, Response, Result, Request};
use vidi_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));
```
## License
This project is licensed under the [MIT license](LICENSE).
## Author
- [@fundon@fosstodon.org](https://fosstodon.org/@fundon)
- [@\_fundon](https://twitter.com/_fundon)