Fix config API to return data directly instead of wrapped in config object
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user