nixos modules for convenient deployment of cloud resources

fix(hetzner): authHeader is a variable so use it properly

ptr.pet 3a9872f4 836663d9

verified
Changed files
+2 -2
firewall
provider
hetzner
+2 -2
firewall/provider/hetzner/app.nu
···
return $"https://api.hetzner.cloud/v1($path)"
}
def post [path: string] {
-
mut resp = $in | http post -e --full -H authHeader --content-type application/json (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}
def get [path: string] {
-
mut resp = http get -e --full -H authHeader (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}
···
return $"https://api.hetzner.cloud/v1($path)"
}
def post [path: string] {
+
mut resp = $in | http post -e --full -H $authHeader --content-type application/json (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}
def get [path: string] {
+
mut resp = http get -e --full -H $authHeader (makeApiUrl path)
$resp.body = $resp.body | from json
$resp
}