You've already forked authentication-service
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:
@ -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
|
||||
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user