summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-24 12:49:12 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-24 12:49:12 +0200
commitfe8a1c10005cc3becacf0c9601ecdc17f2a86e30 (patch)
tree5b406a7f497d05eb137ea8a0374e813a7bb904e1 /src/util/Config.ts
parent:bug: fix type in Channel Messages (diff)
parentUpdate channels.ts (diff)
downloadserver-fe8a1c10005cc3becacf0c9601ecdc17f2a86e30.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-api
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/Config.ts b/src/util/Config.ts

index 60d83e1a..e500197f 100644 --- a/src/util/Config.ts +++ b/src/util/Config.ts
@@ -1,4 +1,4 @@ -import { Config, Snowflake } from "fosscord-server-util"; +import { Config, Snowflake } from "@fosscord/server-util"; import crypto from "crypto"; import fs from "fs"; @@ -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