remove ratelimiter
This commit is contained in:
parent
f79cb6349a
commit
cb6c2ac4fd
1 changed files with 0 additions and 4 deletions
|
@ -23,10 +23,6 @@ val logger = KotlinLogging.logger("nelle.observer API")
|
||||||
fun main(args: Array<String>): Unit = EngineMain.main(args)
|
fun main(args: Array<String>): Unit = EngineMain.main(args)
|
||||||
|
|
||||||
fun Application.module() {
|
fun Application.module() {
|
||||||
install(RateLimit) {
|
|
||||||
register {
|
|
||||||
rateLimiter(limit = 10, refillPeriod = 2.minutes)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
install(ContentNegotiation)
|
install(ContentNegotiation)
|
||||||
install(CORS) {
|
install(CORS) {
|
||||||
|
|
Loading…
Reference in a new issue