This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@authenticate(user) | |
def get_employees(): | |
... | |
get_employees() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def authenticate(request): | |
def decorator(*args, **kwargs): | |
add_auth_headers() | |
request(*args, **kwargs) | |
def add_auth_headers(): | |
... | |
return decorator | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@authenticate | |
@log_request | |
def get_employees(user): | |
... |
OlderNewer