mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-14 22:59:26 +01:00
11 lines
231 B
TypeScript
11 lines
231 B
TypeScript
export default defineCachedEventHandler(async (event) => {
|
|
const result = await queryCollection(event, 'projects')
|
|
.where('extension', '=', 'md')
|
|
.all()
|
|
|
|
return result
|
|
}, {
|
|
maxAge: 60 * 60 * 24,
|
|
name: 'projects'
|
|
})
|