Template
1
0
Fork 0

Made RSS a page endpoint instead of an API endpoint

This commit is contained in:
Atridad Lahiji 2024-02-08 09:36:31 -07:00
parent b975ddb9e5
commit eb837e4ef2
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
package api
package pages
import (
"net/http"