From f8867261df8e22bd9dfb44fa3d7dbbea05686126 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sun, 26 Jan 2025 23:08:49 +0000 Subject: [PATCH] Add GET /ok for status checks --- server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.go b/server.go index fe560e2..03aa857 100644 --- a/server.go +++ b/server.go @@ -77,6 +77,9 @@ func NewHttpServer(conf Conf, wd string) *http.Server { r := http.NewServeMux() r.Handle("/", handler) + r.Handle("GET /ok", http.HandlerFunc(func(rw http.ResponseWriter, _ *http.Request) { + http.Error(rw, "Jasmine API Endpoint", http.StatusOK) + })) r.Handle("/.well-known/caldav", calHandler) r.Handle("/{user}/calendar/", calHandler)