publicDir -> location

This commit is contained in:
dovholuknf
2023-11-29 17:14:56 -05:00
parent 9d47580002
commit 137fc08054
+3 -3
View File
@@ -117,7 +117,7 @@ func (h *spaHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
// Returns a request handler (http.Handler) that serves a single
// page application from a given public directory (publicDir).
func SpaHandler(publicDir string, contextRoot string, indexFile string) http.Handler {
return &spaHandler{publicDir, contextRoot, indexFile}
// page application from a given public directory (location).
func SpaHandler(location string, contextRoot string, indexFile string) http.Handler {
return &spaHandler{location, contextRoot, indexFile}
}