Пример #1
0
def description():
    '''Updates the user's description.'''
    return handler.handle(request, '/description')
Пример #2
0
def follow():
    '''Follows a given user.'''
    return handler.handle(request, '/follow')
Пример #3
0
def unfollow():
    '''Unfollows a given user.'''
    return handler.handle(request, '/unfollow')
Пример #4
0
def following():
    '''Retrieves information of all users being followed.'''
    return handler.handle(request, '/following')
Пример #5
0
def search():
    '''Searches for users with similar usernames.'''
    return handler.handle(request, '/search')
Пример #6
0
def authenticated():
    '''Determines whether user is authenticated'''
    return handler.handle(request, '/authenticated')
Пример #7
0
def login():
    '''Authenticates a user.'''
    return handler.handle(request, '/login')
Пример #8
0
def register():
    '''Registers a user'''
    return handler.handle(request, '/register')
Пример #9
0
def me():
    '''Retrieves personal information.'''
    return handler.handle(request, '/me')
Пример #10
0
def upload():
    '''Uploads image to S3.'''
    return handler.handle(request, '/upload')