1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

refactor: switch from_fn to stable version

This commit is contained in:
Rob Ede
2024-09-11 10:31:11 -04:00
parent 431ebe8c2b
commit e962a2a9b1
4 changed files with 11 additions and 10 deletions

View File

@ -1,11 +1,10 @@
use actix_web::{
body::{self, MessageBody},
dev::{self, ServiceResponse},
middleware::Logger,
middleware::{from_fn, Logger, Next},
web::{self, Data, Json},
App, Error, HttpServer, Responder,
};
use actix_web_lab::middleware::{from_fn, Next};
use aes_gcm_siv::{aead::Aead as _, Aes256GcmSiv, KeyInit as _, Nonce};
use base64::prelude::*;
use serde::{Deserialize, Serialize};