o
    6@õfS  ã                   @   s^   d dl mZmZmZ ddlmZ edeƒZejddgd�dd	„ ƒZ	ejd
dgd�dd„ ƒZ
dS )é    )Ú	BlueprintÚrequestÚjsonifyé   )Úproject_assistantÚmainz
/assistantÚPOST)Úmethodsc                  C   s8   t j} |  d¡}|stddiƒdfS t|ƒ}td|iƒS )NÚquestionÚerroru#   No se proporcionÃ³ ninguna preguntai�  Úresponse)r   ÚjsonÚgetr   r   )Údatar
   Úanswer© r   ú#/home/www_ssl/assistant/app/main.pyÚ	assistant   s   
r   z/healthÚGETc                   C   s   t ddiƒdfS )NÚstatusu)   Assistant estÃ¡ funcionando correctamenteéÈ   )r   r   r   r   r   Úhealth_check   s   r   N)Úflaskr   r   r   r   Ú__name__ÚbpÚappÚrouter   r   r   r   r   r   Ú<module>   s    

	