Add a webhook endpoint.

This commit is contained in:
Tom Alexander
2024-07-14 16:13:06 -04:00
parent 8fb5a83e86
commit ab5db8aded
3 changed files with 242 additions and 0 deletions

12
src/webhook.rs Normal file
View File

@@ -0,0 +1,12 @@
use axum::http::StatusCode;
use axum::Json;
use serde::Serialize;
pub(crate) async fn hook() -> (StatusCode, Json<HookResponse>) {
(StatusCode::OK, Json(HookResponse { ok: true }))
}
#[derive(Serialize)]
pub(crate) struct HookResponse {
ok: bool,
}