4d4e07eb2e
- Use all: prefix in go:embed to include _app/ directory (Go skips _-prefixed dirs by default) - Move jsonContentType middleware to /api route group only - Use http.ServeContent for proper MIME type detection - Remove unused fileServer variable
10 lines
241 B
Go
10 lines
241 B
Go
package dockerwatcher
|
|
|
|
import "embed"
|
|
|
|
// WebBuildFS holds the embedded SvelteKit static build output.
|
|
// The build directory is populated by running `npm run build` in the web/ directory.
|
|
//
|
|
//go:embed all:web/build
|
|
var WebBuildFS embed.FS
|