__init__.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:flask-cooking 作者: damyanbogoev 项目源码 文件源码
def create_api(app):
    api = Api(app, catch_all_404s=True, errors=errors)
    api.representations['application/xml'] = output_xml
    got_request_exception.connect(log_exception, app)

    api.add_resource(Recipes, '/recipes', endpoint='recipes')
    api.add_resource(Recipes, '/recipes/<int:recipe_id>', endpoint='recipe')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号