fbfeed + sectionreset
This commit is contained in:
@@ -17,6 +17,7 @@ def index():
|
||||
sections=Section.query.all()
|
||||
return jsonify(sections=sections)
|
||||
|
||||
|
||||
@section_pages.route("/<int:id>",methods=['PUT'])
|
||||
@section_pages.route("/<int:id>.json",methods=['PUT'])
|
||||
def update(id):
|
||||
@@ -35,3 +36,5 @@ def get(id):
|
||||
clogger.info(section)
|
||||
# section=SectionSchema().dump(section)[0]
|
||||
return jsonify(section=section,articles=section.articles)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user