feat: started to make things work
This commit is contained in:
1 parent
9e21732d00
commit
de6480ba4e
8 files changed
+157
-106
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user