Add new API endpoint /record as a (preferred) alias for /report
This commit is contained in:
parent
ca0ce798da
commit
a83ebfcc99
4
app.py
4
app.py
|
@ -25,6 +25,10 @@ def home():
|
||||||
|
|
||||||
@app.route("/report", methods=["POST"])
|
@app.route("/report", methods=["POST"])
|
||||||
def report():
|
def report():
|
||||||
|
return record()
|
||||||
|
|
||||||
|
@app.route("/record", methods=["POST"])
|
||||||
|
def record():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
n_ts = 0
|
n_ts = 0
|
||||||
n_dp = 0
|
n_dp = 0
|
||||||
|
|
Loading…
Reference in New Issue