func GetPosts(c *gin.Context) {
	posts, err := models.FindAllPost()

	if err != nil {
		c.String(http.StatusInternalServerError, "database parse errror")
	}

	c.JSON(http.StatusOK, posts)
}
// GetPosts parse all blog posts
GetPosts parse all blog posts
// GetPosts parse all blog posts
func GetPosts(c *gin.Context) {
	posts, err := models.FindAllPost()
	if err != nil {
		c.String(http.StatusInternalServerError, "database parse errror")
	}
	c.JSON(http.StatusOK, posts)
}
func GetPosts ( c * gin . Context ) { posts , err := models . FindAllPost ( ) if err != nil { c . String ( http . StatusInternalServerError , " " ) } c . JSON ( http . StatusOK , posts ) }
GetPosts parse all blog posts
GetPosts parse all blog posts