mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 16:24:22 +01:00
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:
10
server/api/socials.get.ts
Normal file
10
server/api/socials.get.ts
Normal 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
|
||||
})
|
||||
Reference in New Issue
Block a user