Skip to content

Commit 1c16c31

Browse files
committed
api: internal projects feed carries description and group
1 parent ba7dacb commit 1c16c31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/app/api/internal/projects/route.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '@/lib/api-auth' // side effect: initializes Firebase Admin
55
// Internal projects feed for sibling Sikasio systems (e.g. Publish).
66
// Implements the generic "project source" contract:
77
// GET + Bearer INTERNAL_API_TOKEN →
8-
// { projects: [{ id, name, color, parentId, status }] }
8+
// { projects: [{ id, name, color, parentId, status, description, group }] }
99

1010
function safeEqual(a: string, b: string): boolean {
1111
if (a.length !== b.length) return false
@@ -40,6 +40,8 @@ export async function GET(request: NextRequest) {
4040
color: (p.color as string) || null,
4141
parentId: (p.parentProjectId as string) || null,
4242
status: (p.status as string) || 'active',
43+
description: (p.description as string) || null,
44+
group: (p.group as string) || null,
4345
}
4446
})
4547
.sort((a, b) => a.name.localeCompare(b.name))

0 commit comments

Comments
 (0)