DS2API
DeepSeek to OpenAI & Claude Compatible API
diff --git a/.gitignore b/.gitignore index 2342ad0..9e5413c 100644 --- a/.gitignore +++ b/.gitignore @@ -64,8 +64,7 @@ pnpm-lock.yaml *.tsbuildinfo .cache/ .parcel-cache/ -static/admin/* -!static/admin/.gitkeep +# static/admin build output is versioned for serverless deployments # Environment .env.local diff --git a/embedded_admin.go b/embedded_admin.go deleted file mode 100644 index 6e23dce..0000000 --- a/embedded_admin.go +++ /dev/null @@ -1,9 +0,0 @@ -package ds2api - -import "embed" - -// EmbeddedAdminFS bundles static/admin so serverless targets can serve WebUI -// without relying on runtime filesystem inclusion. -// -//go:embed static/admin -var EmbeddedAdminFS embed.FS diff --git a/internal/webui/handler.go b/internal/webui/handler.go index b250255..2516c78 100644 --- a/internal/webui/handler.go +++ b/internal/webui/handler.go @@ -1,16 +1,13 @@ package webui import ( - "io/fs" "net/http" "os" - "path" "path/filepath" "strings" "github.com/go-chi/chi/v5" - root "ds2api" "ds2api/internal/config" ) @@ -20,18 +17,11 @@ const welcomeHTML = `
DeepSeek to OpenAI & Claude Compatible API