repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

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
M imgs/api.go
+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(
M lists/api.go
+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(
M prose/api.go
+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(