def deleteComment(): commentId = request.args['id'] return Blogs().deleteComment(commentId)
def createComment(): data = request.get_json() return Blogs().createComment(data)
def getComments(): blogId = request.args['id'] return Blogs().getComment(blogId)
def viewBlog(): return Blogs().viewBlog(request.args['id'])
def deleteBlog(id): return Blogs().deleteBlog(id)
def editBlog(id): return Blogs().editBlog(id)
def updateBlog(id): return Blogs().update(id)
def addBlog(): return Blogs().createBlog()