diff --git a/app.py b/app.py index 1e13dc0..a2e21a8 100644 --- a/app.py +++ b/app.py @@ -56,6 +56,16 @@ def page_board(board_id): return render_template("board.html", board_id=board_id, boards=board_list, board_threads=b_threads) + +@app.route("/db_posts") +def page_posts_from_db(): + + posts = db.collection('posts') + postos = [ p for p in postos] + + return render_template("interactive-posts.html", postos=postos) + + # @app.route('/post_my_post', method=['POST']) # def post_a_post(): # pass diff --git a/templates/i-posts.html b/templates/i-posts.html new file mode 100644 index 0000000..fcfd693 --- /dev/null +++ b/templates/i-posts.html @@ -0,0 +1,7 @@ +{% if posts | length > 0 %} + {% for post in posts %} +