We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a928d commit e3cddebCopy full SHA for e3cddeb
src/middleware/index.ts
@@ -26,7 +26,7 @@ export function expressRateLimiter(
26
redisClientOptions: RedisClientOptions,
27
typeWeightConfig: TypeWeightConfig = defaultTypeWeightsConfig
28
): RequestHandler {
29
- // TODO: Set 'timestamp' on res.locals to record when the request is received in UNIX format. HTTP does not inlude this.
+ const timeStamp = new Date().valueOf();
30
// TODO: Parse the schema to create a TypeWeightObject. Throw ValidationError if schema is invalid
31
// TODO: Connect to Redis store using provided options. Default to localhost:6379
32
// TODO: Configure the selected RateLimtier
0 commit comments