From dce5b169368be9df4ebc5f21d2b87e3b9ec555f7 Mon Sep 17 00:00:00 2001
From: Pascal Bleser
Date: Fri, 31 Oct 2025 17:19:57 +0100
Subject: [PATCH] groupware: move POST+DELETE of contacts and events as a
top-level route underneath accounts
---
.../groupware/pkg/groupware/groupware_route.go | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/services/groupware/pkg/groupware/groupware_route.go b/services/groupware/pkg/groupware/groupware_route.go
index aedf784adc..c26db2b424 100644
--- a/services/groupware/pkg/groupware/groupware_route.go
+++ b/services/groupware/pkg/groupware/groupware_route.go
@@ -144,10 +144,10 @@ func (g *Groupware) Route(r chi.Router) {
r.Get("/", g.GetAddressbook)
r.Get("/contacts", g.GetContactsInAddressbook)
})
- r.Route("/contacts", func(r chi.Router) {
- r.Post("/", g.CreateContact)
- r.Delete("/{contactid}", g.DeleteContact)
- })
+ })
+ r.Route("/contacts", func(r chi.Router) {
+ r.Post("/", g.CreateContact)
+ r.Delete("/{contactid}", g.DeleteContact)
})
r.Route("/calendars", func(r chi.Router) {
r.Get("/", g.GetCalendars)
@@ -155,10 +155,10 @@ func (g *Groupware) Route(r chi.Router) {
r.Get("/", g.GetCalendarById)
r.Get("/events", g.GetEventsInCalendar)
})
- r.Route("/events", func(r chi.Router) {
- r.Post("/", g.CreateCalendarEvent)
- r.Delete("/{eventid}", g.DeleteCalendarEvent)
- })
+ })
+ r.Route("/events", func(r chi.Router) {
+ r.Post("/", g.CreateCalendarEvent)
+ r.Delete("/{eventid}", g.DeleteCalendarEvent)
})
r.Route("/tasklists", func(r chi.Router) {
r.Get("/", g.GetTaskLists)