summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-22 23:29:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-22 23:29:06 +0200
commit4528a96ded3f2023d193957a95ffbd070e4cfc30 (patch)
tree8ad86c56dbd32dbd85a6d4ec9ce06d950a8fb2b3 /src/util
parent:zap: :sparkles: prod multi threading (diff)
downloadserver-4528a96ded3f2023d193957a95ffbd070e4cfc30.tar.xz
prepare npm publish
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Captcha.ts1
-rw-r--r--src/util/Config.ts6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/util/Captcha.ts b/src/util/Captcha.ts
index e69de29b..cb0ff5c3 100644
--- a/src/util/Captcha.ts
+++ b/src/util/Captcha.ts
@@ -0,0 +1 @@
+export {};
diff --git a/src/util/Config.ts b/src/util/Config.ts
index 60d83e1a..1a038b1d 100644
--- a/src/util/Config.ts
+++ b/src/util/Config.ts
@@ -16,7 +16,7 @@ export default {
 	setAll: Config.setAll,
 };
 
-export interface RateLimit {
+export interface RateLimitOptions {
 	count: number;
 	timespan: number;
 }
@@ -62,8 +62,8 @@ export interface DefaultOptions {
 			};
 			routes: {
 				auth?: {
-					login?: RateLimit;
-					register?: RateLimit;
+					login?: RateLimitOptions;
+					register?: RateLimitOptions;
 				};
 				channel?: {};
 				// TODO: rate limit configuration for all routes