feat: add Mithril frontend for flashcard visualization (nes.css)

This commit is contained in:
didier committed 2026-06-05 17:13:58 -04:00
1 parent a40542f7b4
commit 9e21732d00
3 files changed
+115

No files matched your search

+7
View File
@@ -2,8 +2,10 @@ package main
import (
"context"
"embed"
"encoding/json"
"fmt"
"io/fs"
"net/http"
"os"
"os/signal"
@@ -19,6 +21,9 @@ import (
"go.uber.org/zap"
)
//go:embed public/*
var publicFiles embed.FS
var version = "0.1.0"
func main() {
@@ -72,6 +77,8 @@ func main() {
})
mux.Handle("/mcp", authMiddleware(token, streamableServer))
registerAPI(mux, sqliteStore, logger)
publicFS, _ := fs.Sub(publicFiles, "public")
mux.Handle("/", http.FileServer(http.FS(publicFS)))
httpServer := &http.Server{
Addr: ":" + port,