diff options
| author | Chia <Chia@93.nz> | 2026-08-04 19:58:52 +1200 |
|---|---|---|
| committer | Chia <Chia@93.nz> | 2026-08-04 20:43:23 +1200 |
| commit | 5b651488b081b65fda8a323f228e139adb79a35d (patch) | |
| tree | 08baf40efb8fe103b32721cd991ff712323e3173 /internal/adminui/ui.go | |
Build AI gateway control plane and admin UI
Diffstat (limited to 'internal/adminui/ui.go')
| -rw-r--r-- | internal/adminui/ui.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/adminui/ui.go b/internal/adminui/ui.go new file mode 100644 index 0000000..7f58030 --- /dev/null +++ b/internal/adminui/ui.go @@ -0,0 +1,18 @@ +package adminui + +import ( + "embed" + "io/fs" + "net/http" +) + +//go:embed assets/* +var assets embed.FS + +func Handler() http.Handler { + content, err := fs.Sub(assets, "assets") + if err != nil { + panic(err) + } + return http.FileServer(http.FS(content)) +} |
