Delete scheduled message event endpoint (#19)
textsender_api PR / Rustfmt (pull_request) Successful in 56s
textsender_api PR / Check (pull_request) Successful in 1m32s
textsender_api PR / Clippy (pull_request) Successful in 1m37s

Reviewed-on: phoenix/textsender_api#19
This commit was merged in pull request #19.
This commit is contained in:
2026-06-19 16:02:53 -04:00
parent c1557d09f6
commit 3a387813d7
7 changed files with 206 additions and 5 deletions
+7 -1
View File
@@ -10,7 +10,7 @@ pub mod host {
pub mod init {
use std::time::Duration;
use axum::routing::{get, patch, post};
use axum::routing::{delete, get, patch, post};
use tower_http::timeout::TimeoutLayer;
use utoipa::OpenApi;
@@ -148,6 +148,12 @@ pub mod init {
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
),
)
.route(
crate::caller::endpoints::DELETE_SCHEDULED_MESSAGE_EVENT,
delete(scheduling_endpoints::delete_scheduled_message_event).route_layer(
axum::middleware::from_fn(crate::auth::auth::<axum::body::Body>),
),
)
.layer(cors::configure_cors().await)
}