Basic unsubscribe endpoint
This commit is contained in:
@@ -189,6 +189,17 @@ impl TestApp {
|
||||
ConfirmationLinks { html, text }
|
||||
}
|
||||
|
||||
pub async fn get_unsubscribe(&self, unsubscribe_token: String) -> reqwest::Response {
|
||||
self.api_client
|
||||
.get(format!(
|
||||
"{}/unsubscribe?token={}",
|
||||
&self.address, unsubscribe_token
|
||||
))
|
||||
.send()
|
||||
.await
|
||||
.expect("Failed to execute request")
|
||||
}
|
||||
|
||||
pub async fn get_admin_dashboard(&self) -> reqwest::Response {
|
||||
self.api_client
|
||||
.get(format!("{}/admin/dashboard", &self.address))
|
||||
|
||||
Reference in New Issue
Block a user