fix: home page 500
This commit is contained in:
parent
b78c92b2df
commit
d62d0aa11c
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -70,8 +70,6 @@ jobs:
|
|||||||
- name: generate swagger docs
|
- name: generate swagger docs
|
||||||
run: |
|
run: |
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
touch ./cmd/dashboard/user-dist/a
|
|
||||||
touch ./cmd/dashboard/admin-dist/a
|
|
||||||
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
swag init --pd -d . -g ./cmd/dashboard/main.go -o ./cmd/dashboard/docs --parseGoList=false
|
||||||
|
|
||||||
- name: Build with tag
|
- name: Build with tag
|
||||||
|
@ -226,6 +226,9 @@ func fallbackToFrontend(adminFrontend, userFrontend fs.FS) func(*gin.Context) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if fileStat.IsDir() {
|
||||||
|
return false
|
||||||
|
}
|
||||||
http.ServeContent(c.Writer, c.Request, path, fileStat.ModTime(), f.(io.ReadSeeker))
|
http.ServeContent(c.Writer, c.Request, path, fileStat.ModTime(), f.(io.ReadSeeker))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user