Skip to main content

shield_dioxus/
router.rs

1use dioxus::prelude::*;
2
3use crate::routes::Action;
4
5#[derive(Clone, Debug, PartialEq, Routable)]
6pub enum ShieldRouter {
7    #[route("", Action)]
8    ActionIndex,
9    #[route("/:action_id")]
10    Action { action_id: String },
11}