REFACTOR: Documentation for some Flask routes & nginx.conf

This commit is contained in:
Chris-1010
2025-03-02 14:47:37 +00:00
parent 0a4bbc73e5
commit 2fceb6c19d
3 changed files with 31 additions and 4 deletions

View File

@@ -45,6 +45,7 @@ def user_stream_key(username: str):
def user_profile_picture_save():
"""
Saves user profile picture
Returns the path to the saved image
"""
username = session.get("username")
thumbnail_path = path_manager.get_profile_picture_file_path(username)
@@ -58,7 +59,7 @@ def user_profile_picture_save():
image.convert('RGB')
image.save(thumbnail_path, "PNG")
return jsonify({"message": "Profile picture saved"})
return jsonify({"message": "Profile picture saved", "path": thumbnail_path})
@login_required
@user_bp.route('/user/same/<string:username>')