|
@@ -1,6 +1,7 @@
|
|
|
package websubsvc
|
|
|
|
|
|
import (
|
|
|
+ "fmt"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"net/http"
|
|
|
"path"
|
|
@@ -29,6 +30,7 @@ func (s *FrontendUtil) StaticFilesHandler(ctx *gin.Context) {
|
|
|
url := ctx.Request.URL.Path
|
|
|
fin, err := s.filesystem.Stat(path.Clean(url))
|
|
|
if err != nil {
|
|
|
+ fmt.Println("[TEST] err in STAT file: ", err)
|
|
|
if s.vueHistoryMode {
|
|
|
s.VueHistoryModeHandler(ctx)
|
|
|
return
|
|
@@ -40,6 +42,7 @@ func (s *FrontendUtil) StaticFilesHandler(ctx *gin.Context) {
|
|
|
if fin.IsDir() {
|
|
|
_, xerr := s.filesystem.Stat(path.Join(path.Clean(url), "index.html"))
|
|
|
if xerr != nil {
|
|
|
+ fmt.Println("[TEST] err in STAT index.html: ", xerr)
|
|
|
if s.vueHistoryMode {
|
|
|
s.VueHistoryModeHandler(ctx)
|
|
|
return
|