- Initialize module git.georgsen.dk/hwlab with Go 1.23
- Install chi v5.2.5, go-redis v9.18.0, viper v1.21.0, godotenv v1.5.1, uuid v1.6.0, go-netbox v4.3.0
- Create health handler GET /api/health returning {status:ok, version:0.1.0}
- Create chi router with Logger/Recoverer/RealIP middleware and SPA fallback
- Embed web/dist via assets.go at module root (go:embed cannot use .. paths)
- Create stub web/dist/index.html with ClickHouse dark theme
- TestHealth passes
9 lines
206 B
Go
9 lines
206 B
Go
package hwlab
|
|
|
|
import "embed"
|
|
|
|
// StaticFiles contains the embedded web/dist directory.
|
|
// This file lives at the project root so the go:embed path is valid.
|
|
//
|
|
//go:embed web/dist
|
|
var StaticFiles embed.FS
|