export default function () {
  async function getANPRSettingBySite(data: any) {
    return await useNuxtApp().$api<Record<string, any>>(
      `/api/anpr-settings/get/v1`,
      {
        method: "POST",
        body: data,
      }
    );
  }
  async function createUpdateANPRSettings(
    data: any
  ) {
    return await useNuxtApp().$api<Record<string, any>>(
      `/api/anpr-settings/v1`,
      {
        method: "POST",
        body: data,
      }
    );
  }

  return {
    getANPRSettingBySite,
    createUpdateANPRSettings,
  };
}
