o
    i{                     @   sN   d Z ddlmZmZ ddlmZ ddlmZ dZG dd deZ	de	fgZ
d	S )
z.HTTP handler to shut down the Jupyter server.
    )ioloopweb)
authorized)JupyterHandlerserverc                   @   s&   e Zd ZdZeZejedd Z	dS )ShutdownHandlerzA shutdown API handler.c                    s0   | j d | j I dH  tj   dS )zShut down the server.z'Shutting down on /api/shutdown request.N)loginfo	serverapp_cleanupr   IOLoopcurrentstop)self r   [/var/www/edux/Edux_v2/venv/lib/python3.10/site-packages/jupyter_server/services/shutdown.pypost   s   zShutdownHandler.postN)
__name__
__module____qualname____doc__AUTH_RESOURCEauth_resourcer   authenticatedr   r   r   r   r   r   r      s    r   z/api/shutdownN)r   tornador   r   jupyter_server.authr   jupyter_server.base.handlersr   r   r   default_handlersr   r   r   r   <module>   s    