feat(webui): bootstrap session handling and login process
This commit is contained in:
parent
63e2b1b09d
commit
6e069484cb
18 changed files with 447 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue