Adicionar endpoint: POST /trainer/authenticate

This commit is contained in:
Augusto Gunsch
2021-10-17 21:14:56 -03:00
parent fffcb5aa45
commit 7f7dbd68d0
5 changed files with 86 additions and 20 deletions

View File

@@ -14,3 +14,7 @@ def route_get_trainers():
@app.route('/trainer', methods=['POST'])
def route_create_trainer():
return trainer.post_trainer()
@app.route("/trainer/authenticate", methods=['POST'])
def route_auth_trainer():
return trainer.auth_trainer()