first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { getBackend } from "@/lib/backend";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export async function POST(_req: NextRequest, { params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
const channel = await getBackend().markRead(id);
|
||||
return NextResponse.json({ channel });
|
||||
}
|
||||
Reference in New Issue
Block a user