Add API Server (Go/PocketBase), Web App (Go BFF + Vue), Fly App (Flutter/DJI MSDK), Adobe Plugin, and Docker/Docker AIO deployment configs. Design assets and build artifacts are gitignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
14 lines
414 B
Go
14 lines
414 B
Go
package api
|
|
|
|
import "net/http"
|
|
|
|
// GET /ws/device?id=<deviceId> — the Fly App connects here to stream telemetry.
|
|
func (s *Server) handleDeviceWS(w http.ResponseWriter, r *http.Request) {
|
|
s.hub.ServeDevice(w, r, r.URL.Query().Get("id"))
|
|
}
|
|
|
|
// GET /ws/ui — the web dashboard / panel connects here for the live stream.
|
|
func (s *Server) handleUIWS(w http.ResponseWriter, r *http.Request) {
|
|
s.hub.ServeUI(w, r)
|
|
}
|