From fd6c3e860438e9bfb9809eedbd1a8d45def9209e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 16 Mar 2024 17:46:36 -0400 Subject: [PATCH] fix: wrong embed path --- api/account/account.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/account/account.go b/api/account/account.go index f667976..d3fa77b 100644 --- a/api/account/account.go +++ b/api/account/account.go @@ -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) {