From a83ebfcc994cfafa1d9c3ed791643553c31e2624 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 7 Jan 2023 12:55:21 +0100 Subject: [PATCH] Add new API endpoint /record as a (preferred) alias for /report --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 65645da..a8a184a 100644 --- a/app.py +++ b/app.py @@ -25,6 +25,10 @@ def home(): @app.route("/report", methods=["POST"]) def report(): + return record() + +@app.route("/record", methods=["POST"]) +def record(): data = request.get_json() n_ts = 0 n_dp = 0