need to add api to send emails

This commit is contained in:
2023-01-14 12:41:33 +01:00
parent 135c638ee3
commit 8e29c462fd
4 changed files with 64 additions and 35 deletions
+9
View File
@@ -22,6 +22,15 @@ def verify_token(token):
return token == secret_token
@app.route('/send-email', methods=['POST'])
@auth.login_required
@cross_origin()
def send_email():
data_in_json = request.get_json()
print(data_in_json)
return '', 204
@app.route('/', methods=['POST'])
@auth.login_required
@cross_origin()