feat(web): add static file serving and update API routes

- Implement embedded static file serving for frontend assets
- Update API routes to use '/api' prefix
- Add web handler for static file serving with proper content types
- Modify .gitignore and README to reflect new web/dist directory structure
This commit is contained in:
2026-05-05 15:45:51 +08:00
parent cdeaa5bacc
commit a0ef35627b
5 changed files with 135 additions and 33 deletions
+6
View File
@@ -0,0 +1,6 @@
package web
import "embed"
//go:embed dist/*
var StaticFiles embed.FS