- commit
- a2181c3
- parent
- 1254bad
- author
- Eric Bower
- date
- 2022-09-02 01:20:46 +0000 UTC
fix: add other rss routes to subdomains
3 files changed,
+9,
-0
+3,
-0
1@@ -676,6 +676,9 @@ func createSubdomainRoutes(staticRoutes []shared.Route) []shared.Route {
2 routes := []shared.Route{
3 shared.NewRoute("GET", "/", blogHandler),
4 shared.NewRoute("GET", "/rss", rssBlogHandler),
5+ shared.NewRoute("GET", "/rss.xml", rssBlogHandler),
6+ shared.NewRoute("GET", "/atom.xml", rssBlogHandler),
7+ shared.NewRoute("GET", "/feed.xml", rssBlogHandler),
8 }
9
10 routes = append(
+3,
-0
1@@ -718,6 +718,9 @@ func createSubdomainRoutes(staticRoutes []shared.Route) []shared.Route {
2 routes := []shared.Route{
3 shared.NewRoute("GET", "/", blogHandler),
4 shared.NewRoute("GET", "/rss", rssBlogHandler),
5+ shared.NewRoute("GET", "/rss.xml", rssBlogHandler),
6+ shared.NewRoute("GET", "/atom.xml", rssBlogHandler),
7+ shared.NewRoute("GET", "/feed.xml", rssBlogHandler),
8 }
9
10 routes = append(
+3,
-0
1@@ -872,6 +872,9 @@ func createSubdomainRoutes(staticRoutes []shared.Route) []shared.Route {
2 shared.NewRoute("GET", "/", blogHandler),
3 shared.NewRoute("GET", "/_styles.css", blogStyleHandler),
4 shared.NewRoute("GET", "/rss", rssBlogHandler),
5+ shared.NewRoute("GET", "/rss.xml", rssBlogHandler),
6+ shared.NewRoute("GET", "/atom.xml", rssBlogHandler),
7+ shared.NewRoute("GET", "/feed.xml", rssBlogHandler),
8 }
9
10 routes = append(