From 53ca9f40f8318beb5d5dbc19b57876f80fbec510 Mon Sep 17 00:00:00 2001
From: Pascal Bleser
Date: Wed, 16 Apr 2025 16:58:23 +0200
Subject: [PATCH] add missing routing for /groupware (currently unprotected for
testing)
---
services/groupware/pkg/service/http/v0/service.go | 1 +
services/proxy/pkg/config/defaults/defaultconfig.go | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/services/groupware/pkg/service/http/v0/service.go b/services/groupware/pkg/service/http/v0/service.go
index fcdbc26975..2174e2eb52 100644
--- a/services/groupware/pkg/service/http/v0/service.go
+++ b/services/groupware/pkg/service/http/v0/service.go
@@ -83,6 +83,7 @@ func (IndexResponse) Render(w http.ResponseWriter, r *http.Request) error {
}
func (g Groupware) Ping(w http.ResponseWriter, r *http.Request) {
+ g.logger.Info().Msg("groupware pinged")
w.WriteHeader(http.StatusNoContent)
}
diff --git a/services/proxy/pkg/config/defaults/defaultconfig.go b/services/proxy/pkg/config/defaults/defaultconfig.go
index e3f2e380c5..d9ad7d4ce7 100644
--- a/services/proxy/pkg/config/defaults/defaultconfig.go
+++ b/services/proxy/pkg/config/defaults/defaultconfig.go
@@ -304,6 +304,10 @@ func DefaultPolicies() []config.Policy {
{
Endpoint: "/collaboration",
Service: "eu.opencloud.web.collaboration",
+ },
+ {
+ Endpoint: "/groupware/",
+ Service: "eu.opencloud.web.groupware",
Unprotected: true,
},
},