summaryrefslogtreecommitdiff
path: root/pkg/webui/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/webui/run.go')
-rw-r--r--pkg/webui/run.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/webui/run.go b/pkg/webui/run.go
index f1b20cb..664b9e5 100644
--- a/pkg/webui/run.go
+++ b/pkg/webui/run.go
@@ -2,6 +2,7 @@ package webui
import (
"context"
+ "embed"
"log/slog"
"net"
"net/http"
@@ -10,6 +11,12 @@ import (
"git.adyxax.org/adyxax/tfstated/pkg/middlewares/logger"
)
+//go:embed html/*
+var htmlFS embed.FS
+
+//go:embed static/*
+var staticFS embed.FS
+
func Run(
ctx context.Context,
db *database.DB,