示例#1
0
文件: pages.py 项目: szkocka/api
 def get(self):
     about_page = AboutPage.get(1)
     return ok({'content': about_page.content})
示例#2
0
文件: pages.py 项目: szkocka/api
    def post(self, current_user):
        content = request.json['content']
        about_page = AboutPage(id=1, content=content)
        about_page.put()

        return ok_msg('About page is updated.')