示例#1
0
def get_blogs():
    # Can filter so it doesn't give all content for each blog
    # blogs = Blog.get_all()
    # blogs = map(lambda blog: blog.to_dict(), blogs)
    return {'blogs': Blog.get_all()}