Skip to content

Commit

Permalink
petit test de redirect du service
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Dec 7, 2023
1 parent 3298c62 commit 4afa12a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ def register():
return jsonify({'message': 'User registered successfully'}), 201


@app.route('/logincas?ticket=<ticket_id>', methods=['GET'])
def logincas(ticket_id):
data = request.get_json()
print(ticket_id)
print(data)
return jsonify({'message': 'Login successful'+ticket_id}), 200


@app.route('/login', methods=['POST'])
def login():
data = request.get_json()
Expand Down

0 comments on commit 4afa12a

Please sign in to comment.