mirror of
https://github.com/ArthurDanjou/artapi.git
synced 2026-01-20 01:21:35 +01:00
Add API endpoints for content and update MCP resources to use them
Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
7
server/api/languages.get.ts
Normal file
7
server/api/languages.get.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const result = await queryCollection(event, 'languages')
|
||||
.where('extension', '=', 'json')
|
||||
.first()
|
||||
|
||||
return result.body
|
||||
})
|
||||
Reference in New Issue
Block a user