o
    `>hk                     @   s   d dl 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edeejfdedejfd	d
ZejdedeejfdededejfddZdS )    )	APIRouterDependsHTTPException)database)
UISettings)uiz/{account_id})response_model
account_iddbc              
   C   s8   zt | |W S  ty } ztdt|dd }~ww Ni  )status_codedetail)
ui_serviceget_ui_settings	Exceptionr   str)r	   r
   e r   6/var/www/html/moveengine/app/v1/routers/platform/ui.pyget_settings   s   r   settingsc              
   C   s>   z
t | | |W S  ty } ztdt|dd }~ww r   )r   update_ui_settingsdictr   r   r   )r	   r   r
   r   r   r   r   update_settings   s   r   N)fastapir   r   r   app.dbr   app.v1.models.platform.uir   app.v1.services.platformr   r   routergetget_mongo_dbr   MongoDBr   postr   r   r   r   r   <module>   s     (