mirror of
https://github.com/1f349/jasmine.git
synced 2025-03-10 05:13:04 +00:00
Add GET /ok for status checks
This commit is contained in:
parent
cee2d7fbd9
commit
f8867261df
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user