fbfeed + sectionreset

This commit is contained in:
Andreas Stephanides
2017-01-15 14:43:02 +01:00
parent 449a278d58
commit f475364213
7 changed files with 95 additions and 36 deletions

View File

@@ -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)