diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2023-11-08 12:25:43 -0500 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2023-11-08 12:25:43 -0500 |
| commit | 63d57c7f57de281934726ecdc43e27b6da99be06 (patch) | |
| tree | a9690f5d69960b916259bb64a2789b810b3f1616 /dashboard_website/dashboard.py | |
| parent | 6b9d2b694821e63da8a9db47a97ce9cc6d807a4b (diff) | |
dashboard changes - routing in router.py
Diffstat (limited to 'dashboard_website/dashboard.py')
| -rw-r--r-- | dashboard_website/dashboard.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dashboard_website/dashboard.py b/dashboard_website/dashboard.py index 6d4d1f7..9ccad9f 100644 --- a/dashboard_website/dashboard.py +++ b/dashboard_website/dashboard.py @@ -4,7 +4,7 @@ # from flask import Flask, flash, request, redirect, render_template, send_from_directory, jsonify -import db +import db, router app = Flask(__name__) @@ -75,7 +75,9 @@ def requestRoute(): # "status" : "OK"/"ERROR XX" } # ERROR CODES: 1 = missing fields, 2 = invalid field types, 3 = invalid coordinates, 10 = other/network error def updateTeamLocation(): - pass + content = request.get_json() + db.pingBike(content['team_name'], content['latitude'], content['longitude']) + return jsonify({'team_name' : content['team_name'], 'status' : "OK"}) # # WEB PAGES + DASHBOARD API |
