o
    µE,hò  ã                   @   sX   d dl mZ d dlmZ d dlmZ ddlmZ edgƒdd„ ƒZedgƒd	d
„ ƒZ	dS )é    )Úrender)ÚResponse)Úapi_viewé   )ÚservicesÚGETc                 C   s   t  ¡ }t|ƒS )z
    List all teams.
    )r   Úget_teams_datar   )ÚrequestÚ
teams_list© r   ú'/var/www/html/FantasyAPI/teams/views.pyÚ	get_teams   s   r   c                 C   s   t  |¡}t|ƒS )z
    Get Team by id.
    )r   Úget_team_datar   )r	   ÚidÚteamr   r   r   Úget_team   s   
r   N)
Údjango.shortcutsr   Úrest_framework.responser   Úrest_framework.decoratorsr   Ú r   r   r   r   r   r   r   Ú<module>   s    
