mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-14 21:09:25 +01:00
Merge socials into contact resource to eliminate duplication
Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user