fix: wrong embed path
This commit is contained in:
parent
cc1efd5d85
commit
fd6c3e8604
|
@ -29,7 +29,7 @@ import (
|
||||||
//go:embed swagger.yaml
|
//go:embed swagger.yaml
|
||||||
var swagSpec []byte
|
var swagSpec []byte
|
||||||
|
|
||||||
//go:embed app/build/client/build
|
//go:embed app/build/client
|
||||||
var appFs embed.FS
|
var appFs embed.FS
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -333,7 +333,7 @@ func (a AccountAPI) Routes() (*httprouter.Router, error) {
|
||||||
Purpose: account.JWTPurposeLogin,
|
Purpose: account.JWTPurposeLogin,
|
||||||
})
|
})
|
||||||
|
|
||||||
appFiles, _ := fs.Sub(appFs, "app")
|
appFiles, _ := fs.Sub(appFs, "app/build/client")
|
||||||
appServ := http.FileServer(http.FS(appFiles))
|
appServ := http.FileServer(http.FS(appFiles))
|
||||||
|
|
||||||
appHandler := func(c jape.Context) {
|
appHandler := func(c jape.Context) {
|
||||||
|
|
Loading…
Reference in New Issue