pgs-spa.diff

on erock's pastes | raw

expires: 09 Jan, 2024

 1diff --git a/pgs/api.go b/pgs/api.go
 2index 8c63d5f..d43beaa 100644
 3--- a/pgs/api.go
 4+++ b/pgs/api.go
 5@@ -155,6 +155,9 @@ func calcPossibleRoutes(projectName, fp string) []string {
 6 					fmt.Sprintf("%s.html", fname),
 7 				),
 8 			}),
 9+			shared.GetAssetFileName(&utils.FileEntry{
10+				Filepath: filepath.Join(projectName, "index.html"),
11+			}),
12 		}
13 	}
14 
15@@ -165,6 +168,9 @@ func calcPossibleRoutes(projectName, fp string) []string {
16 		shared.GetAssetFileName(&utils.FileEntry{
17 			Filepath: filepath.Join(projectName, fp, "index.html"),
18 		}),
19+		shared.GetAssetFileName(&utils.FileEntry{
20+			Filepath: filepath.Join(projectName, "index.html"),
21+		}),
22 	}
23 }
24