Skip to content

Commit 5eb33af

Browse files
committed
refactor: simplify GET response to return a static play status
1 parent 5637c0e commit 5eb33af

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/app/api/play/route.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { myBookmarks } from "@/backend/services/bookmark.action";
21
import { NextResponse } from "next/server";
32

43
export async function GET() {
5-
const bookmarks = await myBookmarks({
6-
resource_type: "ARTICLE",
7-
});
8-
9-
return NextResponse.json(bookmarks, {
10-
status: 200,
11-
headers: { "Content-Type": "application/json" },
12-
});
4+
return NextResponse.json(
5+
{ play: true },
6+
{
7+
status: 200,
8+
headers: { "Content-Type": "application/json" },
9+
}
10+
);
1311
}

0 commit comments

Comments
 (0)