mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
docs: improve performances (#570)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
Benjamin Canac
parent
1145f88bca
commit
7dff23912d
5
docs/server/api/search.json.get.ts
Normal file
5
docs/server/api/search.json.get.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { serverQueryContent } from '#content/server'
|
||||
|
||||
export default eventHandler(async (event) => {
|
||||
return serverQueryContent(event).where({ _type: 'markdown', navigation: { $ne: false } }).find()
|
||||
})
|
||||
Reference in New Issue
Block a user