diff --git a/api/kiwi_vpn_api/routers/device.py b/api/kiwi_vpn_api/routers/device.py index b27e4b1..8b38410 100644 --- a/api/kiwi_vpn_api/routers/device.py +++ b/api/kiwi_vpn_api/routers/device.py @@ -90,19 +90,19 @@ async def remove_device( }, response_model=DeviceRead, ) -async def request_certificate( +async def request_certificate_issuance( current_user: User = Depends(get_current_user), device: Device = Depends(get_device_by_id), ) -> Device: """ - POST ./{device_id}/issue: Request certificate for a device. + POST ./{device_id}/issue: Request certificate issuance for a device. """ # check permission if not current_user.can_edit(device): raise HTTPException(status_code=status.HTTP_403_FORBIDDEN) - # cannot request for a newly created device + # can only request for a newly created device if device.approved is not None: raise HTTPException(status_code=status.HTTP_409_CONFLICT)