o
    h0                     @   s:  d dl mZmZ d dlmZ d dlmZmZmZm	Z	 d dl
mZ d dlmZ d dlmZ e Zejddd	eeeejfd
ededefddZejdeddeeeejfdededefddZejdee	 ddeeeejfdededefddZejddd	eeeejfd
ededefddZdS )    )	APIRouterDepends)Session)CompanyListCreatCompanyListResponseCompanyListUpdateVesselResponse)CompanyService)get_db)
JWTManagerz/company_list_routerT)response_model_exclude_nonerequestdbtokenc                       t ||| I d H S N)r	   create_companyr   r   r    r   7/var/www/html/beacon-api/app/api/company_list/router.pycreate_comapany
      r   z/company_list/{company_id})response_modelr   
company_idc                    r   r   )r	   get_companyr   r   r   r   r   r   r      r   r   z/company/{company_id}/vesselsc                    r   r   )r	   get_company_vesselsr   r   r   r   r      r   r   z/company_list_router/updatec                    r   r   )r	   update_companyr   r   r   r   r      r   r   N)fastapir   r   sqlalchemy.ormr   app.api.company_list.schemasr   r   r   r   app.api.company_list.servicer	   app.database.main.mysqlr
   app.dependency.authanticationr   company_list_routerpostverify_tokendictr   getintr   listr   putr   r   r   r   r   <module>   s    (((,