Beispiel #1
0
def google_address(username: str):
    return Config.create_response(
        response=google_map.get_reverse_geocode_data(
            username=username, location=request.json.get('location'))
    )
Beispiel #2
0
def get_nearby_data(username: str):
    return Config.create_response(
        response=google_map.get_nearby_data(username=username, location=request.json.get('location'))
    )
Beispiel #3
0
def history(username: str):
    return Config.create_response(user.get_user_history(username=username))
Beispiel #4
0
def delete_user(username: str):
    return Config.create_response(response=user.delete_profile(username=username))
Beispiel #5
0
def create_user(username: str):
    return Config.create_response(
        response=user.create_profile(username=username, user_data=request)
    )
Beispiel #6
0
def get_all_users():
    return Config.create_response(response=user.get_all_users())