From b900d9b3429bd2aacaeb1b89a76a343e55c920d5 Mon Sep 17 00:00:00 2001 From: Avinash Dwarapu Date: Wed, 28 Sep 2016 00:21:10 +0200 Subject: [PATCH] Fix documentation for GET_rules in subreddit --- r2/r2/controllers/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/front.py b/r2/r2/controllers/front.py index 7ee6b3d09b..524294f4da 100644 --- a/r2/r2/controllers/front.py +++ b/r2/r2/controllers/front.py @@ -958,7 +958,7 @@ def GET_sidebar(self): return Reddit(content=usertext).render() @require_oauth2_scope("read") - @api_doc(api_section.subreddits, uses_site=True) + @api_doc(api_section.subreddits, uri='/r/{subreddit}/about/rules') def GET_rules(self): """Get the rules for the current subreddit""" if not feature.is_enabled("subreddit_rules", subreddit=c.site.name):