mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-04-02 18:05:23 +00:00
update actix to version 4
This commit is contained in:
@@ -10,11 +10,9 @@ lazy_static! {
|
||||
}
|
||||
|
||||
pub fn init(cfg: &mut web::ServiceConfig) {
|
||||
println!("Limit: {}", *LIMIT);
|
||||
let json = web::JsonConfig::default().limit(*LIMIT);
|
||||
let plain = web::PayloadConfig::default()
|
||||
.limit(*LIMIT)
|
||||
.mimetype(mime::STAR_STAR);
|
||||
cfg.data(json);
|
||||
cfg.data(plain);
|
||||
cfg.app_data(json).app_data(plain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user