| Crates.io | pathrouter |
| lib.rs | pathrouter |
| version | 0.2.0 |
| created_at | 2022-10-16 14:41:36.055136+00 |
| updated_at | 2023-07-30 03:15:22.821992+00 |
| description | a simple router library |
| homepage | https://github.com/zzzdong/pathrouter |
| repository | https://github.com/zzzdong/pathrouter |
| max_upload_size | |
| id | 689469 |
| size | 42,657 |
[pathrouter] is a simple router.
use pathrouter::{Router, Params};
let mut router = Router::new();
router.add("/posts", "posts");
router.add("/posts/:post_id", "post");
let (endpoint, params) = router.route("/posts/1").unwrap();
This project is licensed under the MIT license.