Skip to content

Commit 61e96b0

Browse files
committed
added timestamp task for express middleware
1 parent 4ee8a3a commit 61e96b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middleware/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export function expressRateLimiter(
2626
redisClientOptions: RedisClientOptions,
2727
typeWeightConfig: TypeWeightConfig = defaultTypeWeightsConfig
2828
): RequestHandler {
29+
// TODO: Set 'timestamp' on res.locals to record when the request is received in UNIX format. HTTP does not inlude this.
2930
// TODO: Parse the schema to create a TypeWeightObject. Throw ValidationError if schema is invalid
3031
// TODO: Connect to Redis store using provided options. Default to localhost:6379
3132
// TODO: Configure the selected RateLimtier

0 commit comments

Comments
 (0)