fix(vm): change method from post to get

This commit is contained in:
Aleksandr Tcitlionok
2024-12-09 03:26:29 +00:00
parent 11ad665173
commit dc66d5a33e

View File

@@ -37,7 +37,7 @@ def add_vm_data(vm: VirtualMachine):
)
return {"message": f"Virtual machine '{vm.name}' added successfully."}
@router.post("/vm/import-hetzner")
@router.get("/vm/import-hetzner")
def import_hetzner_vms(api_token: str = None):
"""
Import virtual machines from Hetzner Cloud.