mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
import { type APIContext } from 'astro';
|
|
import { api } from './api.ts';
|
|
|
|
export function projectApi(context: APIContext) {
|
|
return {
|
|
listProjectsUserCount: async function (projectIds: string[]) {
|
|
return api(context).post<Record<string, number>>(
|
|
`${import.meta.env.PUBLIC_API_URL}/v1-list-projects-user-count`,
|
|
{
|
|
projectIds,
|
|
},
|
|
);
|
|
},
|
|
};
|
|
}
|