Skip to content

Commit 9f3e94e

Browse files
committed
Add jwt_required decorator to PATCH /dreams/mine handler
1 parent 4e24248 commit 9f3e94e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/routes/dream/mine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def create_my_dream():
5151

5252

5353
@my_dream_bp.route("/dreams/mine/<int:dream_id>", methods=["PATCH"])
54+
@jwt_required()
5455
def toggle_visibility(dream_id: int):
5556
updated_dream = Dream.toggle_visibility(dream_id)
5657
if updated_dream is None:

0 commit comments

Comments
 (0)