Fixed base path (again again again) and rewrote .env

This commit is contained in:
2022-02-02 10:28:26 +01:00
parent 83931bd2a4
commit a189b7a378
9 changed files with 19 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ import (
)
func ServePath(w http.ResponseWriter, r *http.Request) {
path := filepath.Join(config.FrontendDir, strings.TrimPrefix(r.URL.Path, config.Prefix))
path := filepath.Join(config.FrontendDir, strings.TrimPrefix(r.URL.Path, config.Path))
if _, err := os.Stat(path); os.IsNotExist(err) {
Error404(w, r)
} else {