File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ def not_found(error):
16
16
17
17
#---------------------------------------------- Section and Article Endpoints
18
18
19
-
20
19
@app .route ('/sections/<string:section_slug>/' + \
21
20
'subsection/<string:subsection_slug>' )
22
21
def get_section_by_slug (section_slug ,subsection_slug ):
@@ -31,9 +30,7 @@ def get_section_by_slug(section_slug,subsection_slug):
31
30
).first ()
32
31
if target .parent_slug == section_slug :
33
32
return jsonify ({"description" : target .description })
34
- article_route = '''
35
- /sections/<string:section_slug>/subsection/<string:subsection_slug>/articles/
36
- '''
33
+ article_route = '''/sections/<string:section_slug>/subsection/<string:subsection_slug>/articles/'''
37
34
@app .route (article_route , defaults = {'article_slug' : None })
38
35
@app .route (article_route + '<string:article_slug>' )
39
36
def get_section_articles (section_slug ,subsection_slug ,article_slug ):
You can’t perform that action at this time.
0 commit comments