Get All Posts

This is an endpoint that retrieves an array of all posts of a specific type. The actual endpoint is: "get/posts/{post_type}". There is no limit to the number of posts returned.

Example:

let postType = '...'
fetch(`www.mysite.com/api/get/posts/${postType}`)
.then((blob) => {
return blob.json()
})
.then((data) => {
console.log(data.content)
})