From eb837e4ef27a78d1eb5a812b199014d3fc0cee9a Mon Sep 17 00:00:00 2001 From: atridadl Date: Thu, 8 Feb 2024 09:36:31 -0700 Subject: [PATCH] Made RSS a page endpoint instead of an API endpoint --- main.go | 2 +- {api => pages}/rss.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {api => pages}/rss.go (98%) diff --git a/main.go b/main.go index 8937f0d..d0c6dd4 100644 --- a/main.go +++ b/main.go @@ -62,11 +62,11 @@ func main() { e.GET("/blog", pages.Blog) e.GET("/post/:post", pages.Post) e.GET("/sse", pages.SSEDemo) + e.GET("/rss", pages.RSSFeedHandler) // API Routes: apiGroup := e.Group("/api") apiGroup.GET("/ping", api.Ping) - apiGroup.GET("/rss", api.RSSFeedHandler) apiGroup.GET("/sse", func(c echo.Context) error { return api.SSE(c, pubSub) diff --git a/api/rss.go b/pages/rss.go similarity index 98% rename from api/rss.go rename to pages/rss.go index 6db9e7e..3075bea 100644 --- a/api/rss.go +++ b/pages/rss.go @@ -1,4 +1,4 @@ -package api +package pages import ( "net/http"