From 4ea857331feae29c6349104f7c1c2f5851ee4459 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 18 Dec 2025 16:57:46 -0800 Subject: [PATCH] add comment on why we are not using a proper middleware --- src/http/Server.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/Server.zig b/src/http/Server.zig index 569aff1..8a3d002 100644 --- a/src/http/Server.zig +++ b/src/http/Server.zig @@ -33,6 +33,8 @@ pub fn init( .port = port, }, ctx); + // We won't use actual middleware for rate limiting here because we only have + // a couple routes to protect with rate limiting var router = try httpz_server.router(.{}); router.get("/", handleWeatherRoot, .{}); router.get("/:location", handleWeatherLocation, .{});