19 lines
451 B
Python
19 lines
451 B
Python
|
from config_endpoints.api import resource, ApiResource, nickname
|
||
|
|
||
|
|
||
|
@resource('/v1/user/')
|
||
|
class User(ApiResource):
|
||
|
""" Operations related to users. """
|
||
|
|
||
|
@nickname('getLoggedInUser')
|
||
|
def get(self):
|
||
|
""" Get user information for the authenticated user. """
|
||
|
# user = get_authenticated_user()
|
||
|
|
||
|
# return user_view(user)
|
||
|
return {
|
||
|
'anonymous': False,
|
||
|
# 'username': user.username,
|
||
|
}
|
||
|
|