Browse Source

fix: api-snippet-v2

pull/7875/head
Raju Udava 8 months ago
parent
commit
4c4bd240a8
  1. 6
      packages/nc-gui/components/smartsheet/details/Api.vue

6
packages/nc-gui/components/smartsheet/details/Api.vue

@ -82,11 +82,7 @@ const selectedClient = ref<string | undefined>(langs[0].clients && langs[0].clie
const selectedLangName = ref(langs[0].name)
const apiUrl = computed(
() =>
new URL(
`/api/v1/db/data/noco/${base.value?.id}/${meta.value?.id}/views/${view.value?.id}`,
(appInfo.value && appInfo.value.ncSiteUrl) || '/',
).href,
() => new URL(`/api/v2/tables/${meta.value?.id}/records`, (appInfo.value && appInfo.value.ncSiteUrl) || '/').href,
)
const snippet = computed(

Loading…
Cancel
Save