summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/settings/webhook.edit.vue
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2024-01-04 18:32:46 +0900
committerGitHub <noreply@github.com>2024-01-04 18:32:46 +0900
commitfa9c4a19b98167c7552bec8f4d791bd89db8fbbe (patch)
treeb889429cd20a5160de818ee61c2dcd9066e2c14b /packages/frontend/src/pages/settings/webhook.edit.vue
parentrefactor(frontend): reduce type errors (diff)
downloadmisskey-fa9c4a19b98167c7552bec8f4d791bd89db8fbbe.tar.gz
misskey-fa9c4a19b98167c7552bec8f4d791bd89db8fbbe.tar.bz2
misskey-fa9c4a19b98167c7552bec8f4d791bd89db8fbbe.zip
refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる (#12694)
* refactor(frontend): os.tsに引き込んだscripts/api.tsの再exportをやめる * fix * fix * renate to "misskeyApi" * rename file
Diffstat (limited to 'packages/frontend/src/pages/settings/webhook.edit.vue')
-rw-r--r--packages/frontend/src/pages/settings/webhook.edit.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/settings/webhook.edit.vue b/packages/frontend/src/pages/settings/webhook.edit.vue
index c1695dc6a5..9eb344bd46 100644
--- a/packages/frontend/src/pages/settings/webhook.edit.vue
+++ b/packages/frontend/src/pages/settings/webhook.edit.vue
@@ -48,6 +48,7 @@ import FormSection from '@/components/form/section.vue';
import MkSwitch from '@/components/MkSwitch.vue';
import MkButton from '@/components/MkButton.vue';
import * as os from '@/os.js';
+import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
import { useRouter } from '@/router.js';
@@ -58,7 +59,7 @@ const props = defineProps<{
webhookId: string;
}>();
-const webhook = await os.api('i/webhooks/show', {
+const webhook = await misskeyApi('i/webhooks/show', {
webhookId: props.webhookId,
});