aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-12 22:10:39 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-12 22:10:39 +0200
commitdaed6af0255ab9798a18ca5a2cdb42dec54143d1 (patch)
tree3ea2ea44fa04bec895f60b74b00c9437be898bab /pyaggr3g470r/views.py
parentMerged in jaesivsm/pyaggr3g470r (pull request #4) (diff)
downloadnewspipe-daed6af0255ab9798a18ca5a2cdb42dec54143d1.tar.gz
newspipe-daed6af0255ab9798a18ca5a2cdb42dec54143d1.tar.bz2
newspipe-daed6af0255ab9798a18ca5a2cdb42dec54143d1.zip
Reseolved 'Page Not Found' error when clicking on 'Mark all as read'.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 8a3ccbe9..c8ed0b79 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -237,7 +237,7 @@ def home():
unread=dict(unread), articles=articles.all())
-@app.route('/article/redirect/<int:article_id>', methods=['GET'])
+@app.route('/article/redirect/<int:article_id>/', methods=['GET'])
@login_required
def redirect_to_article(article_id):
article = Article.query.filter(Article.id == article_id,
@@ -250,7 +250,7 @@ def redirect_to_article(article_id):
@app.route('/fetch/', methods=['GET'])
-@app.route('/fetch/<int:feed_id>', methods=['GET'])
+@app.route('/fetch/<int:feed_id>/', methods=['GET'])
@login_required
def fetch(feed_id=None):
"""
@@ -308,7 +308,7 @@ def feed(feed_id=None):
first_post_date=first_article, end_post_date=last_article , nb_articles=nb_articles, \
average=average, delta=delta, elapsed=elapsed)
-@app.route('/article/<int:article_id>', methods=['GET'])
+@app.route('/article/<int:article_id>/', methods=['GET'])
@login_required
def article(article_id=None):
"""
@@ -334,9 +334,9 @@ def article(article_id=None):
return redirect(redirect_url())
-@app.route('/mark_as/<string:new_value>', methods=['GET'])
-@app.route('/mark_as/<string:new_value>/feed/<int:feed_id>', methods=['GET'])
-@app.route('/mark_as/<string:new_value>/article/<int:article_id>', methods=['GET'])
+@app.route('/mark_as/<string:new_value>/', methods=['GET'])
+@app.route('/mark_as/<string:new_value>/feed/<int:feed_id>/', methods=['GET'])
+@app.route('/mark_as/<string:new_value>/article/<int:article_id>/', methods=['GET'])
@login_required
@feed_access_required
def mark_as(new_value='read', feed_id=None, article_id=None):
@@ -360,7 +360,7 @@ def mark_as(new_value='read', feed_id=None, article_id=None):
return redirect(redirect_url())
return redirect(url_for('home'))
-@app.route('/like/<int:article_id>', methods=['GET'])
+@app.route('/like/<int:article_id>/', methods=['GET'])
@login_required
def like(article_id=None):
"""
bgstack15