Skip to content

Commit 0205542

Browse files
committed
NOT HEHE
1 parent cad2929 commit 0205542

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/bin/auth/auth.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ where
9999
.and(filters::with_store(email_store.clone()))
100100
.and(my_filters::with_http_client(http_client.clone()))
101101
.and(filters::with_api_settings(api.clone()))
102-
.and_then(trial_handler)
103-
.with(&cors);
102+
.and_then(trial_handler);
104103

105104
let tg_trial_route = warp::post()
106105
.and(warp::path("tg-trial"))
@@ -120,14 +119,14 @@ where
120119
.and(warp::body::json::<request::ActivateKey>())
121120
.and(my_filters::with_http_client(http_client))
122121
.and(filters::with_api_settings(api))
123-
.and_then(activate_key_handler)
124-
.with(&cors);
122+
.and_then(activate_key_handler);
125123

126124
let routes = health_check
127125
.or(auth_route)
128126
.or(trial_route)
129127
.or(tg_trial_route)
130-
.or(activate_route);
128+
.or(activate_route)
129+
.with(cors);
131130

132131
warp::serve(routes)
133132
.run(SocketAddr::new(IpAddr::V4(self.listen), self.port))

src/bin/auth/helpers.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ pub async fn create_connection(
170170
api_address: &str,
171171
api_token: &str,
172172
) -> anyhow::Result<uuid::Uuid> {
173+
tracing::debug!("POST /connection {}", env);
174+
173175
let res = auth_headers(
174176
http.post(format!("{}/connection", api_address))
175177
.json(&serde_json::json!({

0 commit comments

Comments
 (0)