aboutsummaryrefslogtreecommitdiff
path: root/examples/struct_router.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/struct_router.rs')
-rw-r--r--examples/struct_router.rs7
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!")
}
}