Island: Add comment about seemingly duplicate endpoints

This commit is contained in:
Mike Salvatore 2022-04-27 13:19:16 -04:00
parent 3a5d28cc59
commit 13ca4b6f8c
1 changed files with 4 additions and 2 deletions

View File

@ -26,8 +26,10 @@ class FileUpload(flask_restful.Resource):
def __init__(self, file_storage_service: IFileStorageService):
self._file_storage_service = file_storage_service
# TODO: Add comment explaining why this is basically a duplicate of the endpoint in the
# PBAFileDownload resource.
# This endpoint is basically a duplicate of PBAFileDownload.get(). They serve slightly different
# purposes. This endpoint is authenticated, whereas the one in PBAFileDownload can not be (at
# the present time). In the future, consider whether or not they should be merged, or if they
# serve truly distinct purposes
@jwt_required
def get(self, target_os):
"""