Skip to content

Commit 17c4e08

Browse files
authored
fix middleware strategy in the example 06 (#116)
Co-authored-by: Sherly1001 <[email protected]>
1 parent c16f21e commit 17c4e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/06_middleware.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub fn main() !void {
3535
router.middlewares = &.{logger};
3636

3737
router.get("/", index, .{});
38-
router.get("/other", other, .{ .middlewares = &.{} });
38+
router.get("/other", other, .{ .middlewares = &.{}, .middleware_strategy = .replace });
3939

4040
std.debug.print("listening http://localhost:{d}/\n", .{PORT});
4141

0 commit comments

Comments
 (0)