backend: Fix typo

This commit is contained in:
Kevin Kandlbinder 2022-09-07 16:15:43 +02:00
parent 03cc6a60a7
commit cfc2b98463

View file

@ -26,7 +26,7 @@ func ServeUI() (http.Handler, error) {
staticServer := http.FileServer(http.FS(fSys))
serveIndex, err := ServeIndex()
myServeIndex, err := serveIndex()
if err != nil {
return nil, err
}
@ -35,7 +35,7 @@ func ServeUI() (http.Handler, error) {
_, err := fSys.Open(strings.TrimPrefix(path.Clean(r.URL.Path), "/"))
if err != nil {
log.Println(err)
serveIndex.ServeHTTP(w, r)
myServeIndex.ServeHTTP(w, r)
return
}
log.Println("serving static")