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
+2
View File
@@ -37,6 +37,8 @@ Create a `config.json` file in the project root:
## Build
**You have to put the compiled frontend in the `web/dist` directory before building the backend.**
```bash
go build -o super-frpc.exe
```