repos / pico

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

commit
f27efe4
parent
3b65668
author
Eric Bower
date
2023-03-15 15:35:02 +0000 UTC
chore(prose): add some more rss endpoints
2 files changed,  +6, -0
M db/postgres/storage.go
+2, -0
1@@ -948,6 +948,8 @@ func (me *PsqlDB) insertAliasesForPost(tx *sql.Tx, aliases []string, postID stri
2 		"apple-touch-icon.png",
3 		"favicon.ico",
4 		"robots.txt",
5+		"atom",
6+		"blog/index.xml",
7 	}
8 
9 	ids := make([]string, 0)
M prose/api.go
+4, -0
 1@@ -844,6 +844,8 @@ func createMainRoutes(staticRoutes []shared.Route) []shared.Route {
 2 		shared.NewRoute("GET", "/([^/]+)/rss", rssBlogHandler),
 3 		shared.NewRoute("GET", "/([^/]+)/rss.xml", rssBlogHandler),
 4 		shared.NewRoute("GET", "/([^/]+)/atom.xml", rssBlogHandler),
 5+		shared.NewRoute("GET", "/([^/]+)/atom", rssBlogHandler),
 6+		shared.NewRoute("GET", "/([^/]+)/blog/index.xml", rssBlogHandler),
 7 		shared.NewRoute("GET", "/([^/]+)/feed.xml", rssBlogHandler),
 8 		shared.NewRoute("GET", "/([^/]+)/_styles.css", blogStyleHandler),
 9 		shared.NewRoute("GET", "/([^/]+)/(.+)", postHandler),
10@@ -861,6 +863,8 @@ func createSubdomainRoutes(staticRoutes []shared.Route) []shared.Route {
11 		shared.NewRoute("GET", "/rss.xml", rssBlogHandler),
12 		shared.NewRoute("GET", "/atom.xml", rssBlogHandler),
13 		shared.NewRoute("GET", "/feed.xml", rssBlogHandler),
14+		shared.NewRoute("GET", "/atom", rssBlogHandler),
15+		shared.NewRoute("GET", "/blog/index.xml", rssBlogHandler),
16 	}
17 
18 	routes = append(