feat: update Go server to serve static files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user