Refactor code structure for improved readability and maintainability

This commit is contained in:
2025-12-22 23:09:21 +01:00
parent c04bf9f82b
commit e0589826bb
31 changed files with 407 additions and 180 deletions

View File

@@ -5,6 +5,8 @@ export default defineCachedEventHandler(async (event) => {
.where('extension', '=', 'json')
.first()
console.log(await queryCollection(event, 'contact').all())
if (!result) {
throw createError({ statusCode: 404, statusMessage: 'Contact information not found' })
}