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