Skip to content

Commit

Permalink
♻️ refactor: Allow both GET and POST methods for the /check endpoint …
Browse files Browse the repository at this point in the history
…in auth routes
  • Loading branch information
Impre-visible committed Nov 17, 2024
1 parent c3ea878 commit 8a492e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolate_app/routes/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def decorated(*args, **kwargs):
return decorated


@auth_bp.route("/check", methods=["POST"])
@auth_bp.route("/check", methods=["GET", "POST"])
@token_required
def check_auth(current_user):
profile_picture = os.path.join(dir_path, current_user.profile_picture)
Expand Down

0 comments on commit 8a492e3

Please sign in to comment.