repos / pico

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

commit
1d97e59
parent
0e23086
author
Eric Bower
date
2023-09-01 18:06:58 +0000 UTC
fix(pgs): routes should prefer `/check` first
1 files changed,  +1, -1
M pgs/api.go
+1, -1
 1@@ -191,8 +191,8 @@ func StartApiServer() {
 2 
 3 	mainRoutes := []shared.Route{
 4 		shared.NewRoute("GET", "/", marketingRequest),
 5-		shared.NewRoute("GET", "/(.+)", marketingRequest),
 6 		shared.NewRoute("GET", "/check", shared.CheckHandler),
 7+		shared.NewRoute("GET", "/(.+)", marketingRequest),
 8 	}
 9 	subdomainRoutes := []shared.Route{
10 		shared.NewRoute("GET", "/", assetRequest),