diff options
| author | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-05-05 01:33:55 +0000 |
| commit | d66da17c17239408f2ddbc2794621e2d947056a3 (patch) | |
| tree | e448da50c46c429f6ca672aa070577766fffc9bc /examples/struct_router.rs | |
| parent | docs(rossweisse): revert to implementation (diff) | |
| download | windmark-d66da17c17239408f2ddbc2794621e2d947056a3.tar.xz windmark-d66da17c17239408f2ddbc2794621e2d947056a3.zip | |
feat(windmark): prelude feature flag
Diffstat (limited to 'examples/struct_router.rs')
| -rw-r--r-- | examples/struct_router.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/struct_router.rs b/examples/struct_router.rs index a636f7d..3401379 100644 --- a/examples/struct_router.rs +++ b/examples/struct_router.rs @@ -18,6 +18,7 @@ //! `cargo run --example struct_router` use rossweisse::route; +use windmark::response::Response; #[rossweisse::router] struct Router { @@ -27,10 +28,8 @@ struct Router { #[rossweisse::router] impl Router { #[route(index)] - pub fn index( - _context: windmark::context::RouteContext, - ) -> windmark::Response { - windmark::Response::success("Hello, World!") + pub fn index(_context: windmark::context::RouteContext) -> Response { + Response::success("Hello, World!") } } |