aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 27b1ab59..642609c9 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -49,4 +49,9 @@ def article(article_id=None):
@app.route('/articles/<feed_id>', methods=['GET'])
def articles(feed_id=None):
feed = models.Feed.objects(id=feed_id).first()
- return render_template('articles.html', feed=feed) \ No newline at end of file
+ return render_template('articles.html', feed=feed)
+
+@app.route('/favorites/', methods=['GET'])
+def favorites():
+ feed = models.Feed.objects().fields(articles.like=True)
+ return render_template('favorites.html', feed=feed) \ No newline at end of file
bgstack15