mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-16 03:09:20 +00:00
remove old router macro documentation
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
79c9d6ab08
commit
778983c1b0
@ -34,22 +34,7 @@ fn handle_error(mut item: TokenStream, data: Result<TokenStream, Error>) -> Toke
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Macro for building a Router:
|
/// TODO!
|
||||||
///
|
|
||||||
/// ```ignore
|
|
||||||
/// router! {
|
|
||||||
/// pub const ROUTER = {
|
|
||||||
/// "access": {
|
|
||||||
/// "ticket": {
|
|
||||||
/// post = create_ticket,
|
|
||||||
/// }
|
|
||||||
/// }
|
|
||||||
/// };
|
|
||||||
/// }
|
|
||||||
///
|
|
||||||
/// #[api]
|
|
||||||
/// fn create_ticket(param: Value) -> Result<Value, Error> { ... }
|
|
||||||
/// ```
|
|
||||||
#[proc_macro]
|
#[proc_macro]
|
||||||
pub fn router(item: TokenStream_1) -> TokenStream_1 {
|
pub fn router(item: TokenStream_1) -> TokenStream_1 {
|
||||||
let item: TokenStream = item.into();
|
let item: TokenStream = item.into();
|
||||||
|
Loading…
Reference in New Issue
Block a user