aboutsummaryrefslogtreecommitdiff
path: root/rossweisse/README.md
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-05 00:50:57 +0000
committerFuwn <[email protected]>2023-05-05 00:50:57 +0000
commit58e0b15e74abfce2a4d503229b72e2f655e7ba68 (patch)
treeb903ed0109b0d12ecd16297a1e67007011ec05d7 /rossweisse/README.md
parentdocs(router): remove useless assignment (diff)
downloadwindmark-58e0b15e74abfce2a4d503229b72e2f655e7ba68.tar.xz
windmark-58e0b15e74abfce2a4d503229b72e2f655e7ba68.zip
docs(rossweisse): revert to implementation
Diffstat (limited to 'rossweisse/README.md')
-rw-r--r--rossweisse/README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/rossweisse/README.md b/rossweisse/README.md
index 117bff8..cbcf53a 100644
--- a/rossweisse/README.md
+++ b/rossweisse/README.md
@@ -9,6 +9,8 @@ Rossweisse is in it's infancy, and a much comprehensive interface is planned.
For now, a simple Rosswiesse router can be implemented like this:
```rust
+use rossweisse::route;
+
#[rossweisse::router]
struct Router {
_phantom: (),
@@ -16,7 +18,7 @@ struct Router {
#[rossweisse::router]
impl Router {
- #[rossweisse::route(index)]
+ #[route(index)]
pub fn index(
_context: windmark::context::RouteContext,
) -> windmark::Response {