aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index eb1bf0c0..b4f93ddf 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -41,5 +41,9 @@ def feed(feed_id=None):
@app.route('/article/<article_id>', methods=['GET'])
def article(article_id=None):
article = models.Article.objects(id=article_id).first()
- print article.content
- return render_template('article.html', article=article) \ No newline at end of file
+ return render_template('article.html', article=article)
+
+@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
bgstack15