feat: 쿠키 통한 로그인 권한 체크 구현

This commit is contained in:
swcho
2025-10-02 14:00:03 +09:00
parent 662e44b19a
commit ba468c9224
50 changed files with 1253 additions and 150 deletions
@@ -0,0 +1,14 @@
import { client } from "@/src/shared/api";
import { ENDPOINT } from "@/src/shared/config";
import type { MenuItem, MenuService } from "../model/menu-interface";
export class MenuApiService implements MenuService {
async getMenuRoles(siteId: string): Promise<MenuItem[]> {
const response = await client.get<MenuItem[]>(
`${ENDPOINT.CMS_SERVICE.MENU_ROLES}/${siteId}`,
);
return response.data;
}
}
export const MenuApi = new MenuApiService();