add comment on why we are not using a proper middleware
This commit is contained in:
parent
4269cd6376
commit
4ea857331f
1 changed files with 2 additions and 0 deletions
|
|
@ -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, .{});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue