repos / pico

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

commit
e7ad62b
parent
128a382
author
Eric Bower
date
2023-09-12 03:00:00 +0000 UTC
feat(pgs): pretty urls
1 files changed,  +7, -0
M pgs/api.go
+7, -0
 1@@ -148,6 +148,13 @@ func calcPossibleRoutes(projectName, fp string) []string {
 2 			shared.GetAssetFileName(&utils.FileEntry{
 3 				Filepath: filepath.Join(projectName, fp, "index.html"),
 4 			}),
 5+			shared.GetAssetFileName(&utils.FileEntry{
 6+				Filepath: filepath.Join(
 7+					projectName,
 8+					fdir,
 9+					fmt.Sprintf("%s.html", fname),
10+				),
11+			}),
12 		}
13 	}
14