o
    Q?h                     @   s   d dl mZmZ d dlmZ d dlmZmZ d dlm	Z	m
Z
 edeZeddd Zed	d
d Zeddd Zeddd ZdS )    )	Blueprintrequest)sendResponse)OrdersProducts)squareAuthTokensquareAuthUrlsquarez	/auth_urlc                   C   
   t ttS N)r   r   r    r   r   B/var/www/html/riverr-enterprise-integrations-main/routes/square.pyauth_url	      
r   z	/callbackc                   C   r
   r   )r   r   r   r   r   r   r   token   r   r   z	/productsc                   C      t tjtddS NF)authRequired)r   r   updateAllProductsr   r   r   r   r   products      r   z/ordersc                   C   r   r   )r   r   updateAllOrdersr   r   r   r   r   orders   r   r   N)flaskr   r   functions.Responser   functions.Squarer   r   functions.Square.Authr   r   __name__squareBlueprintgetr   postr   router   r   r   r   r   r   <module>   s    



