summaryrefslogtreecommitdiff
path: root/pkg/webui/run.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-06 00:41:32 +0100
committerJulien Dessaux2025-01-06 00:41:32 +0100
commit6e069484cb0a911ba541e07bf04331fadbb76612 (patch)
tree3457c759d54ae91e5ac1e64fe0bbf9c4b8ac18f0 /pkg/webui/run.go
parentfeat(tfstated): add syscall.SIGTERM handling (diff)
downloadtfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.gz
tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.bz2
tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.zip
feat(webui): bootstrap session handling and login process
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,