mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-04-28 09:46:51 +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))
|
||||
|
||||
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")
|
||||
|
|
Loading…
Add table
Reference in a new issue