
    xh                         d dl mZmZmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ d dlmZ d d	lmZ d d
lmZmZ  e       Zej1                  ded       ee      fdede	defd       Zy)    )	APIRouterDependsHTTPException)Session)status)Request)ResponseModel)proceed)RetailersRequest)Users)get_db)	AuthGuardget_current_userz/processzGet all users)response_modelsummarypayloadrequestdbc                 r   K   t        || |       d {   }t        |t        j                  d      S 7  w)N)r   r   zData processed successfully)datastatus_codemessage)r
   r	   r   HTTP_200_OK)r   r   r   responses       [/var/www/html/wine-match-dev/backend/winematch-backend/src/apps/match/routers/wine_match.pyprocessr      s5      R'BBHhF4F4FPmnn Cs   75!7N)fastapir   r   r   sqlalchemy.ormr   	starletter   starlette.requestsr   $src.apps.base.schemas.response_modelr	   ,src.apps.match.controller.wine_match_processr
   src.apps.match.schemas.wine_dbr   src.apps.user.models.user_modelr   src.core.dependenciesr   src.utils.guardr   r   routerpostr        r   <module>r+      sy    5 5 "  & > @ ; 1 ( 7	 ZO &/ooo 	o Por*   