feat: started to make things work

This commit is contained in:
didier committed 2026-06-07 12:30:08 -04:00
1 parent 9e21732d00
commit de6480ba4e
8 files changed
+157 -106

No files matched your search

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