feat: update Go server to serve static files

This commit is contained in:
2026-08-18 15:19:46 +03:00
parent bd83cca99d
commit b000d7d44f
2 changed files with 15 additions and 3 deletions

View File

@@ -54,9 +54,9 @@
- [x] create `static/app.js` with API calls and map rendering logic
### Task 2: Update Go server to serve static files
- [ ] update `cmd/api/main.go` to serve static files from `static/` directory
- [ ] add route for `/static/*` to serve CSS, JS, and other assets
- [ ] add route for `/` or `/index.html` to serve the frontend
- [x] update `cmd/api/main.go` to serve static files from `static/` directory
- [x] add route for `/static/*` to serve CSS, JS, and other assets
- [x] add route for `/` or `/index.html` to serve the frontend
### Task 3: Verify frontend functionality
- [ ] verify search form works and calls `/v1/routes/search` endpoint