This commit is contained in:
10
app.py
10
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
|
||||
|
||||
Reference in New Issue
Block a user