Add a webhook endpoint.
This commit is contained in:
12
src/webhook.rs
Normal file
12
src/webhook.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user