1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Dedicated HTTP server/client crate

Also have better names for the HTTP routes
This commit is contained in:
Quentin Gliech
2022-02-09 13:55:13 +01:00
parent 459ae34ebb
commit 2df40762a2
27 changed files with 335 additions and 126 deletions

View File

@ -9,13 +9,13 @@ license = "Apache-2.0"
anyhow = "1.0.53"
async-trait = "0.1.52"
tokio = { version = "1.16.1", features = ["macros"] }
mas-templates = { path = "../templates" }
mas-config = { path = "../config" }
tracing = "0.1.30"
aws-sdk-sesv2 = "0.6.0"
aws-config = "0.6.0"
mas-templates = { path = "../templates" }
mas-config = { path = "../config" }
[dependencies.lettre]
version = "0.10.0-rc.4"
default-features = false

View File

@ -35,7 +35,8 @@ impl Transport {
/// Constructs a [`Transport`] from a given AWS shared config
#[must_use]
pub fn new(config: &aws_config::Config) -> Self {
let client = Client::new(config);
let config = aws_sdk_sesv2::Config::from(config);
let client = Client::from_conf(config);
Self { client }
}
}