prepare npm publish

This commit is contained in:
Flam3rboy
2021-04-22 23:29:06 +02:00
parent 9705b01fdc
commit 4528a96ded
12 changed files with 251 additions and 654 deletions
+1
View File
@@ -0,0 +1 @@
export {};
+3 -3
View File
@@ -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