fix: wrong embed path

This commit is contained in:
Derrick Hammer 2024-03-16 17:46:36 -04:00
parent cc1efd5d85
commit fd6c3e8604
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import (
//go:embed swagger.yaml
var swagSpec []byte
//go:embed app/build/client/build
//go:embed app/build/client
var appFs embed.FS
var (
@ -333,7 +333,7 @@ func (a AccountAPI) Routes() (*httprouter.Router, error) {
Purpose: account.JWTPurposeLogin,
})
appFiles, _ := fs.Sub(appFs, "app")
appFiles, _ := fs.Sub(appFs, "app/build/client")
appServ := http.FileServer(http.FS(appFiles))
appHandler := func(c jape.Context) {