import { rest } from "msw";
import { GET_CATEGORY } from "@/core/data/apiRoutes";

export const categoriesHandler = [
    rest.get(GET_CATEGORY, (req, res, ctx) => {
        return res(
            ctx.json({
                data: [
                    {
                        category_id: 1,
                        category_name: "اطلاعات راه",
                        subcategory_id: 1,
                        subcategory_name: "اطلاعات باز و بسته",
                    },
                    {
                        category_id: 3,
                        category_name: "سایر",
                        subcategory_id: 2,
                        subcategory_name: "مزاحم",
                    },
                ],
            })
        );
    }),
];
