From 58e0b15e74abfce2a4d503229b72e2f655e7ba68 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 5 May 2023 00:50:57 +0000 Subject: docs(rossweisse): revert to implementation --- examples/struct_router.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/struct_router.rs b/examples/struct_router.rs index af6bce9..a636f7d 100644 --- a/examples/struct_router.rs +++ b/examples/struct_router.rs @@ -17,6 +17,8 @@ //! `cargo run --example struct_router` +use rossweisse::route; + #[rossweisse::router] struct Router { _phantom: (), @@ -24,7 +26,7 @@ struct Router { #[rossweisse::router] impl Router { - #[rossweisse::route(index)] + #[route(index)] pub fn index( _context: windmark::context::RouteContext, ) -> windmark::Response { -- cgit v1.2.3