'Redirect to the subreddit\'s stylesheet if one exists.
See also: [/api/subreddit_stylesheet](#POST_api_subreddit_stylesheet).'

@require_oauth2_scope('modconfig')
@api_doc(api_section.moderation, uses_site=True)
def GET_stylesheet(self):

    if (not isinstance(c.site, FakeSubreddit)):
        c.site = Subreddit._byID(c.site._id, data=True, stale=False)
    url = Reddit.get_subreddit_stylesheet_url(c.site)
    if url:
        return self.redirect(url)
    else:
        self.abort404()
