mirror of
https://github.com/1f349/daisy.git
synced 2025-02-23 05:55:01 +00:00
Add GET /ok for status checks
This commit is contained in:
parent
6054ba1ad6
commit
2f1f070a5e
@ -77,6 +77,9 @@ func NewHttpServer(conf Conf, wd string) *http.Server {
|
|||||||
|
|
||||||
r := http.NewServeMux()
|
r := http.NewServeMux()
|
||||||
r.Handle("/", handler)
|
r.Handle("/", handler)
|
||||||
|
r.Handle("GET /ok", http.HandlerFunc(func(rw http.ResponseWriter, _ *http.Request) {
|
||||||
|
http.Error(rw, "Daisy API Endpoint", http.StatusOK)
|
||||||
|
}))
|
||||||
r.Handle("/.well-known/carddav", cardHandler)
|
r.Handle("/.well-known/carddav", cardHandler)
|
||||||
r.Handle("/{user}/contacts/", cardHandler)
|
r.Handle("/{user}/contacts/", cardHandler)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user