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