mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-28 06:56:05 +01:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user