diff --git a/app/api/power/[device]/[action]/route.ts b/app/api/power/[device]/[action]/route.ts index bfd2e75..a98a953 100644 --- a/app/api/power/[device]/[action]/route.ts +++ b/app/api/power/[device]/[action]/route.ts @@ -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 });