Files
aza/AzA march 2026 - Kopie (17)/authorized_status.ps1

17 lines
304 B
PowerShell
Raw Normal View History

2026-04-19 20:41:37 +02:00
cd "$PSScriptRoot"
$tok = (Get-Content .\backend_token.txt -Raw).Trim()
$headers = @{
"X-API-Token" = $tok
"X-Device-Id" = "pc-winterthur"
}
$r = Invoke-WebRequest `
-UseBasicParsing `
-Headers $headers `
-TimeoutSec 30 `
"http://127.0.0.1:8000/api/project/status"
$r.Content