diff --git a/server/api/update-location.post.ts b/server/api/update-location.post.ts index 1e9c0963..93a62d64 100644 --- a/server/api/update-location.post.ts +++ b/server/api/update-location.post.ts @@ -10,7 +10,7 @@ export default defineEventHandler(async event => { }) } - const config = useRuntimeConfig() + const config = useRuntimeConfig(event) if (apiKey !== config.locationApiKey) { return createError({ statusCode: 401,