Merge socials into contact resource to eliminate duplication

Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-14 22:14:59 +00:00
parent cbc93091e5
commit b7f6eaafc4
5 changed files with 23 additions and 104 deletions

View File

@@ -1,10 +0,0 @@
import { queryCollection } from '@nuxt/content/server'
export default defineCachedEventHandler(async (event) => {
return await queryCollection(event, 'socials')
.where('extension', '=', 'json')
.first()
}, {
name: 'socials-list',
maxAge: 3600 // 1 hour
})