Fix 401 error with plugs

This commit is contained in:
Jack Mechem 2026-05-21 19:33:44 -07:00
parent 0d75cb5913
commit 3f178f8795
Signed by: jackmechem
SSH key fingerprint: SHA256:GjIjMAC33pzYOe+hWcX5uvgnPrVFAXSrquvt84AOJbU

View file

@ -19,6 +19,7 @@ export async function POST(
const res = await fetch(`http://localhost:3001/power/${device}/${action}`, {
method: "POST",
headers: { Authorization: `Bearer ${token}` },
});
return new NextResponse(null, { status: res.status });