o
    !i                     @   sP   d dl mZmZmZ G dd deZededdddZejd	d
 Zdd Z	dS )    )url_for	Blueprintrender_templatec                       s,   e Zd ZdZ fddZ fddZ  ZS )Apidocz
    Allow to know if the blueprint has already been registered
    until https://github.com/mitsuhiko/flask/pull/1301 is merged
    c                    s    d| _ tt| j|i | d S )NF)
registeredsuperr   __init__selfargskwargs	__class__ W/var/www/html/crm_dreinet/venv_linux/lib/python3.10/site-packages/flask_restx/apidoc.pyr   
   s   zApidoc.__init__c                    s    t t| j|i | d| _d S )NT)r   r   registerr   r	   r   r   r   r      s   
zApidoc.register)__name__
__module____qualname____doc__r   r   __classcell__r   r   r   r   r      s    r   	restx_doc	templatesstaticz
/swaggerui)template_folderstatic_folderstatic_url_pathc                 C   s   t d| dS )Nzrestx_doc.staticfilename)r   r   r   r   r   swagger_static   s   r   c                 C   s   t d| j| jdS )z"Render a SwaggerUI for a given APIzswagger-ui.html)title	specs_url)r   r    r!   )apir   r   r   ui_for!   s   r#   N)
flaskr   r   r   r   r   apidocadd_app_template_globalr   r#   r   r   r   r   <module>   s    	
