00dani
Updating @nuxt/content content through server routes?
Hi! I've recently been digging into Vue 3 and Nuxt after having experimented with the old Vue 2 approaches a few years back. Currently I'm looking at Nuxt Content and I'm trying to figure out exactly how to, well, use it as a CMS. The documentation seems to assume all my blog posts will already exist as files committed to my project repository - I believe the intention is that I host my project on GitHub and use its in-browser interface to create new blog posts, but I'd prefer not to be coupled to GitHub in particular and I don't want my posts to be mixed into the project repo's commit history. (Using a separate Git repo to version everything under
content/
would be fine, if Git is absolutely required for Nuxt Content to work.)
Is it possible to write my own endpoints for manipulating the content that exists in my Nuxt Content blog, doing things like creating new blog posts or editing the old ones? In particular, I'd like my application to support something like the Micropub protocol, allowing me to use a variety of external apps and tools for managing my blog content as well as any inbuilt UI that I might decide to design. I'm fine with storing content as flat files, provided those flat files can be manipulated through a friendly API like Micropub. Can this be done with the way Nuxt Content works, or is it simply not meant for that kind of thing?1 replies