Inline route optimization into canteen server (remove proxy to daily-route on port 8912)

- Added extraction DB config and _get_extraction_db() helper
- Added _status_label, _haversine, _solve_tsp (nearest-neighbor + 2-opt)
- Added GET /api/workorders/search (native)
- Added POST /api/workorders/lookup (native)
- Added GET /api/workorders/today (native, reads bookableresourcebooking)
- Added GET /api/workorders/technicians (native)
- Added POST /api/route/optimize (native TSP solver)
- Removed httpx dependency, _proxy_route, _get_route_client
- Removed all proxy endpoints
This commit is contained in:
2026-05-27 18:18:24 -04:00
parent a1022b300e
commit da2a23f6da
3 changed files with 1433 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
export CANTEEN_SKIP_AUTH=1
exec uvicorn server:app --host 0.0.0.0 --port 8915