add more events

This commit is contained in:
Zomatree
2023-01-20 20:15:12 +00:00
parent 1050891d87
commit a017256e95
3 changed files with 434 additions and 26 deletions

View File

@@ -14,6 +14,7 @@ use async_std::channel::unbounded;
use revolt_quark::events::client::EventV1;
use revolt_quark::rauth::{RAuth, RAuthEvent};
use revolt_quark::DatabaseInfo;
use rocket::data::ToByteUnit;
#[launch]
async fn rocket() -> _ {
@@ -70,4 +71,9 @@ async fn rocket() -> _ {
.manage(cors.clone())
.attach(revolt_quark::web::ratelimiter::RatelimitFairing)
.attach(cors)
.configure(rocket::Config {
limits: rocket::data::Limits::default()
.limit("string", 5.megabytes()),
..Default::default()
})
}