import baseApi from "./baseApi";

const brandApi = baseApi.injectEndpoints({
    endpoints: (builder) => ({
        getAllBrands: builder.query({
            query: () => ({
                url: '/brand/all',
                method: 'GET',
            }),
            providesTags: ['brands'], // Reusing tags if necessary, but might need a specific brand tag
        }),
    }),
});

export const { useGetAllBrandsQuery } = brandApi;
export default brandApi;
