kiwi-vpn/api/kiwi_vpn_api/routers/service.py

25 lines
537 B
Python
Raw Normal View History

2022-03-30 21:19:06 +00:00
"""
/service endpoints.
"""
from fastapi import APIRouter, Depends, HTTPException, status
from ..config import Config
from ._common import Responses, get_current_config
router = APIRouter(prefix="/service", tags=["service"])
@router.put(
"/pki/init",
responses={
status.HTTP_200_OK: Responses.OK,
status.HTTP_400_BAD_REQUEST: Responses.NOT_INSTALLED,
status.HTTP_403_FORBIDDEN: Responses.NEEDS_PERMISSION,
},
)
async def init_pki(
_: Config = Depends(get_current_config),
) -> None:
pass