diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:42:57 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:42:57 +0000 |
| commit | 459d93761ade7056632aa2dcd64ff1744cf00f6b (patch) | |
| tree | 3a700c6b72ca52727a69f4e9e06b8b4bde515796 /rossweisse/README.md | |
| parent | feat(windmark): prelude feature flag (diff) | |
| download | windmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.tar.xz windmark-459d93761ade7056632aa2dcd64ff1744cf00f6b.zip | |
docs: fix for prelude
Diffstat (limited to 'rossweisse/README.md')
| -rw-r--r-- | rossweisse/README.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rossweisse/README.md b/rossweisse/README.md index cbcf53a..23af367 100644 --- a/rossweisse/README.md +++ b/rossweisse/README.md @@ -10,6 +10,7 @@ For now, a simple Rosswiesse router can be implemented like this: ```rust use rossweisse::route; +use windmark::response::Response; #[rossweisse::router] struct Router { @@ -21,8 +22,8 @@ impl Router { #[route(index)] pub fn index( _context: windmark::context::RouteContext, - ) -> windmark::Response { - windmark::Response::success("Hello, World!") + ) -> Response { + Response::success("Hello, World!") } } |