mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-06-10 01:09:30 +00:00
15 lines
326 B
Rust
15 lines
326 B
Rust
use actix_web::{HttpResponse, web};
|
|
|
|
#[derive(serde::Deserialize)]
|
|
pub struct Parameters {
|
|
subscription_token: String
|
|
}
|
|
|
|
#[tracing::instrument(
|
|
name = "Confirm a pending subscriber",
|
|
skip(_parameters)
|
|
)]
|
|
pub async fn confirm(_parameters: web::Query<Parameters>) -> HttpResponse {
|
|
HttpResponse::Ok().finish()
|
|
}
|