Fix config API to return data directly instead of wrapped in config object

This commit is contained in:
Torsten Schulz (local)
2025-10-22 12:15:59 +02:00
parent 71f4dea756
commit 3b004d482f
10 changed files with 654 additions and 597 deletions

View File

@@ -15,10 +15,7 @@ export default defineEventHandler(async (event) => {
const data = await fs.readFile(configFile, 'utf-8')
const config = JSON.parse(data)
return {
success: true,
config
}
return config
} catch (error) {
console.error('Fehler beim Laden der Config:', error)
throw createError({