From 8a3a2303a2c73b97d9c4a2442f87e328f3ad828c Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 19 Nov 2023 20:32:35 +0100 Subject: [PATCH] Signal to clients the hook and event routes where removed (#2826) Signal to clients the hook and event routes where removed at #2639 close #2824 --- server/router/api.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/router/api.go b/server/router/api.go index 2d508efe2..1a0a82e35 100644 --- a/server/router/api.go +++ b/server/router/api.go @@ -15,6 +15,8 @@ package router import ( + "net/http" + "github.com/gin-gonic/gin" "github.com/rs/zerolog" @@ -224,4 +226,12 @@ func apiRoutes(e *gin.RouterGroup) { } } } + + // TODO: remove with 3.x + e.Any("/hook", func(c *gin.Context) { + c.String(http.StatusGone, "use /api/hook") + }) + e.Any("/stream/events", func(c *gin.Context) { + c.String(http.StatusGone, "use /api/stream/events") + }) }