Пример #1
0
def deleteComment():
    commentId = request.args['id']
    return Blogs().deleteComment(commentId)
Пример #2
0
def createComment():
    data = request.get_json()
    return Blogs().createComment(data)
Пример #3
0
def getComments():
    blogId = request.args['id']
    return Blogs().getComment(blogId)
Пример #4
0
def viewBlog():
    return Blogs().viewBlog(request.args['id'])
Пример #5
0
def deleteBlog(id):
    return Blogs().deleteBlog(id)
Пример #6
0
def editBlog(id):
    return Blogs().editBlog(id)
Пример #7
0
def updateBlog(id):
    return Blogs().update(id)
Пример #8
0
def addBlog():
    return Blogs().createBlog()