o
    /f                     @   s   d dl mZmZ d dlmZ d dlmZ d dlZd dlm	Z	 e Z
e
jedgddgdgd e
jd	e	d
dd
d G dd deZe
ddefddZe
ddd Zedkrdeje
ddd dS dS )    )FastAPIHTTPException)CORSMiddleware)	BaseModelN)StaticFiles*T)Zallow_originsZallow_credentialsZallow_methodsZallow_headersz/staticZstatic)	directory)namec                   @   s   e Zd ZU eed< dS )ItemquestionN)__name__
__module____qualname__str__annotations__ r   r   E:\ambc\.\api.pyr
      s   
 r
   z/chatbotr   c                    s&   zd| j igW S    ddig Y S )NZanswererrorZ404r   r   r   r   r   	read_item   s
   r   z/statusc                      s   ddigS )NmessagezHello Worldr   r   r   r   r   root   s   
r   __main__z0.0.0.0i@  )hostport)Zfastapir   r   Zfastapi.middleware.corsr   Zpydanticr   uvicornZfastapi.staticfilesr   appZadd_middlewareZmountr
   postr   getr   r   runr   r   r   r   <module>   s,    
