need to add api to send emails
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user