Revert "refactor api.py to not redefine current_user"
Revert "refactor api.py to not redefine current_user"

This reverts commit 12fcb88e1cc92b874344c454c2245c14284eec59.

BenDoan/code_court,unoacm/code_court,unoacm/code_court,BenDoan/code_court,BenDoan/code_court,unoacm/code_court,BenDoan/code_court,unoacm/code_court