def getPosts(): try: result = Posts.fetchPostsJson() return Helpers.OK(result) except Exception as e: return Helpers.ERROR_INTERNAL(e)