add ping endpoint and healthcheck command

This commit is contained in:
Lennart
2025-10-27 21:12:43 +01:00
parent 5d142289b3
commit 77d8f5dacc
5 changed files with 43 additions and 1 deletions

View File

@@ -50,6 +50,8 @@ pub fn make_app<AS: AddressbookStore, CS: CalendarStore, S: SubscriptionStore>(
Arc::new(CombinedCalendarStore::new(cal_store).with_store(birthday_store));
let mut router = Router::new()
// endpoint to be used by healthcheck to see if rustical is online
.route("/ping", axum::routing::get(async || "Pong!"))
.merge(caldav_router(
"/caldav",
auth_provider.clone(),