We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f69822c commit 897bd51Copy full SHA for 897bd51
1 file changed
codegen/codegentemplates/uiroutes.go
@@ -10,7 +10,7 @@ import (
10
// even though we have a Single-Page-Application -style frontend we should reserve the frontend routes at backend
11
// so when user refreshes the page they'll get the SPA bootstrap page for every possible frontend route.
12
func RegisterUIRoutes(routes *http.ServeMux, uiHandler http.HandlerFunc) { {{range .Module.UiRoutes}}
13
- routes.HandleFunc("GET {{.Path}}", uiHandler){{end}}
+ routes.HandleFunc("GET {{if eq .Path "/"}}/{$}{{else}}{{.Path}}{{end}}", uiHandler){{end}}
14
}
15
`
16
0 commit comments