Skip to content

Commit 5045dd4

Browse files
committed
refactor: rename product_categories in response
1 parent 773562e commit 5045dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/api/categories/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function GET(request: NextRequest) {
1212

1313
const { offset } = Object.fromEntries(request.nextUrl.searchParams)
1414

15-
const [categories, count] = await productService
15+
const [product_categories, count] = await productService
1616
.listAndCountCategories(
1717
{},
1818
{
@@ -26,7 +26,7 @@ export async function GET(request: NextRequest) {
2626
})
2727

2828
return NextResponse.json({
29-
categories,
29+
product_categories,
3030
count,
3131
})
3232
}

0 commit comments

Comments
 (0)