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