mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-24 01:06:26 +00:00
Nicco
cacb808117
* restructuring * pin svelte kit version & parallel execution * update svelte kit * correct test result assets * add timeout * correct locale path * simplify crypto * fix for #58 * add verbosity flag * disable flaky test
13 lines
342 B
Rust
13 lines
342 B
Rust
use crate::config;
|
|
use actix_web::web;
|
|
use mime;
|
|
|
|
pub fn init(cfg: &mut web::ServiceConfig) {
|
|
let json = web::JsonConfig::default().limit(*config::LIMIT);
|
|
let plain = web::PayloadConfig::default()
|
|
.limit(*config::LIMIT)
|
|
.mimetype(mime::STAR_STAR);
|
|
// cfg.app_data(plain);
|
|
cfg.app_data(json).app_data(plain);
|
|
}
|