예제 #1
0
def getPostsLanding():
    try:
        result = Posts.fetchPostsLandingJson()
        return Helpers.OK(result)
    except Exception as e:
        return Helpers.ERROR_INTERNAL(e)
예제 #2
0
def getPost(postroute):
    try:
        result = Posts.fetchPostJson(postroute)
        return Helpers.OK(result)
    except Exception as e:
        return Helpers.ERROR_INTERNAL(e)