mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-05-05 21:26:21 +02:00
backend: Fix typo
This commit is contained in:
parent
03cc6a60a7
commit
cfc2b98463
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ func ServeUI() (http.Handler, error) {
|
||||||
|
|
||||||
staticServer := http.FileServer(http.FS(fSys))
|
staticServer := http.FileServer(http.FS(fSys))
|
||||||
|
|
||||||
serveIndex, err := ServeIndex()
|
myServeIndex, err := serveIndex()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ func ServeUI() (http.Handler, error) {
|
||||||
_, err := fSys.Open(strings.TrimPrefix(path.Clean(r.URL.Path), "/"))
|
_, err := fSys.Open(strings.TrimPrefix(path.Clean(r.URL.Path), "/"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
serveIndex.ServeHTTP(w, r)
|
myServeIndex.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Println("serving static")
|
log.Println("serving static")
|
||||||
|
|
Loading…
Add table
Reference in a new issue