add comment on why we are not using a proper middleware

This commit is contained in:
Emil Lerch 2025-12-18 16:57:46 -08:00
parent 4269cd6376
commit 4ea857331f
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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, .{});