nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.13k stars 627 forks source link

`/api/_content` Document not found #2478

Closed Sazzels closed 9 months ago

Sazzels commented 10 months ago

Environment


Reproduction

git clone https://github.com/nuxt/starter.git
cd starter/
git checkout content
npm install
npm run build
node .output/server/index.mjs

Describe the bug

shouldn't there be a api behind that endpoint from where i could get infos like title, description, updated at?

https://content.nuxt.com/get-started/configuration#api

GET http://localhost:3000/api/_content

Document not found, overwrite this content with #not-found slot in <ContentDoc>.

Additional context

No response

Logs

No response

farnabaz commented 9 months ago

/api/_content is the baseURl for module APIs. The module exposes some APIs under this base. You can hit /api/_content/query and see the result of query API.