Commit 634da940 authored by dsbenton's avatar dsbenton
Browse files

modified api route path in backend

parent 93edd0b8
......@@ -151,12 +151,11 @@ def validate_login():
return jsonify(False)
@ app.route('/message', methods=["POST"])
@ app.route('/vue-admin-template/user/form', methods=["POST"])
def send_messages():
"""Send messages to different users."""
connection = get_db()
message = flask.request.json["form"]["message"]
# add into database somehow
file_list = flask.request.json["form"]["fileList"]
sender = flask.session["username"]
receiver = flask.request.json["receiver"]
......@@ -169,7 +168,7 @@ def send_messages():
return
@ app.route('/message', methods=["GET"])
@ app.route('/vue-admin-template/user/form', methods=["GET"])
def receive_messages():
"""Receive messages from different messages."""
connection = get_db()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment