add atom, rss and json feed support

This commit is contained in:
ngn
2024-04-11 16:07:01 +03:00
parent 2a95341a99
commit 736bc7c4aa
8 changed files with 1201 additions and 83 deletions

View File

@@ -19,7 +19,9 @@ func Setup(app *fiber.App, db *sql.DB){
})
// blog routes
app.Get("/blog/feed", GetFeed)
app.Get("/blog/feed.atom", GetAtomFeed)
app.Get("/blog/feed.rss", GetRSSFeed)
app.Get("/blog/feed.json", GetJSONFeed)
app.Get("/blog/sum", SumPost)
app.Get("/blog/get", GetPost)
app.Get("/blog/vote/set", VoteSet)