diff --git a/internal/http/services/ocmd/ocm.go b/internal/http/services/ocmd/ocm.go index 6f997baf708..bb380d53ae1 100644 --- a/internal/http/services/ocmd/ocm.go +++ b/internal/http/services/ocmd/ocm.go @@ -73,9 +73,16 @@ func New(m map[string]interface{}, log *zerolog.Logger) (global.Service, error) return s, nil } +func (s *svc) Notifications(w http.ResponseWriter, r *http.Request) { + // TODO(lopresti) hack to test Nextcloud + w.WriteHeader(http.StatusCreated) +} + func (s *svc) routerInit() error { sharesHandler := new(sharesHandler) invitesHandler := new(invitesHandler) + // TODO(lopresti) implement a notifications handler + // notifHandler := new(notifHandler) if err := sharesHandler.init(s.Conf); err != nil { return err @@ -86,6 +93,7 @@ func (s *svc) routerInit() error { s.router.Post("/shares", sharesHandler.CreateShare) s.router.Post("/invite-accepted", invitesHandler.AcceptInvite) + s.router.Post("/notifications", s.Notifications) // notifHandler.Notifications) return nil }