Update actix libraries

This commit is contained in:
Valentin Tolmer 2021-08-22 16:30:25 +02:00 committed by nitnelave
parent 87516eb218
commit be3e50d31a

View File

@ -49,11 +49,11 @@ fn http_config<Backend>(
) where
Backend: TcpBackendHandler + BackendHandler + LoginHandler + OpaqueHandler + 'static,
{
cfg.app_data(AppState::<Backend> {
cfg.app_data(web::Data::new(AppState::<Backend> {
backend_handler,
jwt_key: Hmac::new_varkey(jwt_secret.as_bytes()).unwrap(),
jwt_blacklist: RwLock::new(jwt_blacklist),
})
}))
// Serve index.html and main.js, and default to index.html.
.route(
"/{filename:(index\\.html|main\\.js)?}",