feat: implement find_all method in ChannelRepository and update related services and routes for public access

This commit is contained in:
2026-03-11 21:29:33 +01:00
parent d7b21120c8
commit 8cc3439d2e
7 changed files with 44 additions and 27 deletions

View File

@@ -27,14 +27,12 @@ export async function GET(
const { channelId } = await params;
const token = request.nextUrl.searchParams.get("token");
if (!token) {
return new Response(null, { status: 401 });
}
let res: Response;
try {
const headers: Record<string, string> = {};
if (token) headers["Authorization"] = `Bearer ${token}`;
res = await fetch(`${API_URL}/channels/${channelId}/stream`, {
headers: { Authorization: `Bearer ${token}` },
headers,
redirect: "manual",
});
} catch {