feat(webui): bootstrap session handling and login process

This commit is contained in:
Julien Dessaux 2025-01-06 00:41:32 +01:00
parent 63e2b1b09d
commit 6e069484cb
Signed by: adyxax
GPG key ID: F92E51B86E07177E
18 changed files with 447 additions and 1 deletions

View file

@ -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,