We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18a23a8 commit cdec20aCopy full SHA for cdec20a
src/runtime/server/api/kql.ts
@@ -4,8 +4,6 @@ import type { KqlQueryRequest, KqlQueryResponse } from '../../types'
4
import { getAuthHeaders } from '../../utils'
5
import { useRuntimeConfig } from '#app'
6
7
-const { kql } = useRuntimeConfig()
8
-
9
export default defineEventHandler(async (event): Promise<KqlQueryResponse> => {
10
assertMethod(event, 'POST')
11
const body = await useBody(event)
@@ -20,6 +18,8 @@ export default defineEventHandler(async (event): Promise<KqlQueryResponse> => {
20
18
}
21
19
22
+ const { kql } = useRuntimeConfig()
+
23
try {
24
return await $fetch<KqlQueryResponse>(kql.kirbyEndpoint, {
25
baseURL: kql.kirbyUrl,
0 commit comments