Skip to content

Commit

Permalink
added "explore" route
Browse files Browse the repository at this point in the history
  • Loading branch information
JayKayAce committed Jul 16, 2019
1 parent bf4fcb5 commit 6fd6ea8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ def unfollow(username):
return redirect(url_for("user", username = username))

@app.route("/explore")
@login_required
@login_required
def explore():
posts = Post.query.order_by(Post.timestamp.desc()).all()
return render_template("index.html",title="Explore", posts=posts)

0 comments on commit 6fd6ea8

Please sign in to comment.