Snai3i-MarketPlace / frontend / src / app / backend / endpoints / pack.ts
pack.ts
Raw
import api from '..';
const PACK_API = '/pack';

export const packsApi = api.injectEndpoints({
  endpoints: (build) => ({
    getPacks: build.query<ResponseI<PackI[]>, void>({
      query: () => ({
        url: `${PACK_API}/active`,
        method: 'GET',
      }),
    }),
  }),
});
// update/status/:meeting_id
export const { useGetPacksQuery } = packsApi;