
    i                     n   d dl mZ d dlmZmZ d dlmZmZ d dlm	Z	  ee
      j                         j                  j                  Zedz  Z e       Z e	 ee            Zej%                  de      d	efd
       Zej%                  de      d	efd       Zej%                  de      d	efd       Zy)    )Path)	APIRouterRequest)HTMLResponseRedirectResponse)Jinja2Templates	templates)	directory/)response_classrequestc                 2    t         j                  | di       S )Nzchatbot.htmlr   namecontext)r	   TemplateResponser   s    A/home/techsaathi/public_html/it_helpdesk_chatbot/app/api/pages.pychatbot_pager      s#    %% &      z
/dashboardc                     | j                   j                  d      st        dd      S t        j	                  | di       S )Nuser/chatbot/login.  status_codezdashboard.htmlr   sessiongetr   r	   r   r   s    r   dashboard_pager       sC    ??v& 0cBB%% &  r   z/adminc                     | j                   j                  d      st        dd      S t        j	                  | di       S )Nr   r   r   r   z
admin.htmlr   r   r   s    r   
admin_pager"   #   sC    ??v& 0cBB%% &  r   N)pathlibr   fastapir   r   fastapi.responsesr   r   fastapi.templatingr   __file__resolveparentBASE_DIRTEMPLATES_DIRrouterstrr	   r   r   r    r"    r   r   <module>r/      s     & < .>!!#**11;&	c-&89	 C-'  . L6G  7 H\2  3r   