Add social links resource and update README with comprehensive documentation

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

10
server/api/socials.get.ts Normal file
View File

@@ -0,0 +1,10 @@
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
})