Made RSS a page endpoint instead of an API endpoint
This commit is contained in:
parent
b975ddb9e5
commit
eb837e4ef2
2 changed files with 2 additions and 2 deletions
2
main.go
2
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)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package api
|
||||
package pages
|
||||
|
||||
import (
|
||||
"net/http"
|
Loading…
Add table
Reference in a new issue