diff --git a/src/services/member/memeber.service.ts b/src/services/member/memeber.service.ts index ff1cd7f..51d21b1 100644 --- a/src/services/member/memeber.service.ts +++ b/src/services/member/memeber.service.ts @@ -1,9 +1,15 @@ import { api } from "@/config/axios"; -import { IReadProfileResponse } from "./member.types"; + +import { IReadMyGroups, IReadProfileResponse } from "./member.types"; export const memberService = { readProfile: async () => { const response = await api.get(`/members`); return response.data; }, + + readMyGroups: async (page: number = 0) => { + const response = await api.get(`/groups?page=${page}`); + return response.data.data.groupList; + }, };