Closed ShayestehHS closed 1 month ago
https://github.com/ShayestehHS/DjangoUltimateURLShortener/blob/75e6d4d86bf548a18e08218cdc690c4fdc59d9aa/urls/api/urls.py#L7
Check token length in url if it is possible Else check it in view Purpose of this issue is preventing redundant query to DB
I think it is better to check in view because of better error handling
https://github.com/ShayestehHS/DjangoUltimateURLShortener/blob/75e6d4d86bf548a18e08218cdc690c4fdc59d9aa/urls/api/urls.py#L7
Check token length in url if it is possible Else check it in view Purpose of this issue is preventing redundant query to DB
I think it is better to check in view because of better error handling