def get(self): """ Obtenir tous les posts """ posts = PostService.get_all_post() post_schema = PostSchema(exclude=["comments"]) return render_template('posts.html', title="Articles", posts=post_schema.dump(posts, many=True), current_connected_user=connected_user( get_jwt_identity()))
def get(self): """ Page d'accueil """ posts = PostService.get_all_post() post_schema = PostSchema(exclude=["comments"]) return render_template('home.html', title="Accueil", posts=post_schema.dump(posts, many=True), current_connected_user=connected_user( get_jwt_identity()))